@Test
public void logsErrorWhenTryRegisterSingletonDuplicateExceptionMapper() throws Exception {

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