@Override
    public void run(Configuration configuration, Environment environment) {
        environment.jersey().register(new LoggingSQLExceptionMapper());
        environment.jersey().register(new LoggingJdbiExceptionMapper());
    }
@Test
    void test() {
        Environment environment = mock(Environment.class);
        JerseyEnvironment jerseyEnvironment = mock(JerseyEnvironment.class);
        when(environment.jersey()).thenReturn(jerseyEnvironment);

        new JdbiExceptionsBundle().run(new Configuration(), environment);

        verify(jerseyEnvironment).register(isA(LoggingSQLExceptionMapper.class));
        verify(jerseyEnvironment).register(isA(LoggingJdbiExceptionMapper.class));
    }