@Test
public void logsErrorWhenTryRegisterDuplicateContextResolver() throws Exception {

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