@Test
public void logsErrorWhenTryRegisterDuplicateExceptionMapper() throws Exception {

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