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

    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");
    object.appendChild(Param.class);
    final ParamParser parser = new ParamParser(object, null, server,
            session);
    BadFetchError error = null;
    try {
        parser.getParameters();
    } catch (BadFetchError e) {
        error = e;
    }
    Assert.assertNotNull(
            "ParamParser should have thrown an error.badfetch", error);
}