@Test(expected = IllegalArgumentException.class) public void itThrowsSpecifiedExceptionOnBuild() { ImmutableSpecifiedException.builder().buildOrThrow(IllegalArgumentException::new); }
@Test(expected = SampleRuntimeException.class) public void itThrowsExpectedConfiguredException() { ImmutableSpecifiedException.builder().build(); }