@Test
public void logsErrorWhenTryRegisterPerRequestDuplicateContextResolver() throws Exception {

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