@Test
public void resolvesHttpHeaders() throws Exception {

    HttpHeaders httpHeaders = mock(HttpHeaders.class);
    when(applicationContext.getHttpHeaders()).thenReturn(httpHeaders);
    when(parameter.getParameterClass()).thenReturn((Class)HttpHeaders.class);
    assertSame(httpHeaders, contextParameterResolver.resolve(parameter, applicationContext));
    verify(environmentContext, never()).get(any(Class.class));
}