@Test
public void testGetParameters() throws Exception, JVoiceXMLEvent {

    String test = "actor";
    final URI uri = map.getUri("/test");
    map.addDocument(uri, test);
    final DataModel model = Mockito.mock(DataModel.class);
    Mockito.when(model.evaluateExpression("last", Object.class))
            .thenReturn("Buchholz");
    final VoiceXmlDocument doc = new VoiceXmlDocument();
    final Vxml vxml = doc.getVxml();
    final Form form = vxml.appendChild(Form.class);
    final ObjectTag object = form.appendChild(ObjectTag.class);
    final Param param1 = object.appendChild(Param.class);
    param1.setName("firstname");
    param1.setValue("Horst");
    final Param param2 = object.appendChild(Param.class);
    param2.setName("lastname");
    param2.setExpr("last");
    final Param param3 = object.appendChild(Param.class);
    param3.setName("job");
    param3.setValue(uri.toString());
    param3.setValuetype(ParamValueType.REF);
    param3.setType("text/plain");
    final ParamParser parser = new ParamParser(object, model, server,
            session);
    final Map<String, Object> params = parser.getParameters();
    Assert.assertEquals("Horst", params.get("firstname"));
    Assert.assertEquals("Buchholz", params.get("lastname"));
    Assert.assertEquals(test, params.get("job"));
}