@Test
public void retrievesMatrixParamValueFromLastPathSegment() throws Exception {

    when(typeProducer.createValue("foo", matrixParameters, null)).thenReturn(matrixParameters.getFirst("foo"));
    Object resolvedMatrixParameter = matrixParameterResolver.resolve(parameter, applicationContext);
    assertEquals(matrixParameters.getFirst("foo"), resolvedMatrixParameter);
}