@Test
public void retrievesQueryParameterFromRequest() throws Exception {

    when(typeProducer.createValue("foo", queryParameters, null)).thenReturn(queryParameters.getFirst("foo"));
    Object resolvedHeader = queryParameterResolver.resolve(parameter, applicationContext);
    assertEquals(queryParameters.getFirst("foo"), resolvedHeader);
}