@Test
public void retrievesPathParameterFromRequest() throws Exception {

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