@Test
public void logsErrorWhenTryRegisterPerRequestDuplicateExceptionMapper() throws Exception {

    providers.addExceptionMapper(RuntimeExceptionMapper.class);
    providers.addExceptionMapper(RuntimeExceptionMapper.class);
    assertThatErrorLoggingEventWithThrowableAppended(DuplicateProviderException.class);
}