@Test
public void resolvesProviders() throws Exception {

    ProviderBinder providers = mock(ProviderBinder.class);
    when(applicationContext.getProviders()).thenReturn(providers);
    when(parameter.getParameterClass()).thenReturn((Class)Providers.class);
    assertSame(providers, contextParameterResolver.resolve(parameter, applicationContext));
    verify(environmentContext, never()).get(any(Class.class));
}