@Test
public void retrievesDefaultValueWhenPathParameterDoesNotPresentInRequest() throws Exception {

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