public class DBIExceptionsBundleTest {
@Test
public void test() {
Environment environment = mock(Environment.class);
JerseyEnvironment jerseyEnvironment = mock(JerseyEnvironment.class);
when(environment.jersey()).thenReturn(jerseyEnvironment);
new DBIExceptionsBundle().run(environment);
verify(jerseyEnvironment, times(1)).register(isA(LoggingSQLExceptionMapper.class));