@Test
public void logsErrorWhenTryRegisterSingletonDuplicateContextResolver() throws Exception {

    providers.addContextResolver(contextResolverAnyText);
    providers.addContextResolver(contextResolverAnyText);
    assertThatErrorLoggingEventWithThrowableAppended(DuplicateProviderException.class);
}