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

    VoiceXmlDocument document = new VoiceXmlDocument();
    Vxml vxml = document.getVxml();
    vxml.appendChild(Form.class);
    final URI uri = map.getUri("/test");
    map.addDocument(uri, document);
    final DocumentDescriptor descriptor = new DocumentDescriptor(uri);
    Object object = server.getObject(null, descriptor,
            DocumentServer.TEXT_XML);
    Assert.assertTrue("object should be a document",
            object instanceof Document);
    final Document other = (Document) object;
    final Node otherVxml = other.getFirstChild();
    Assert.assertEquals(Vxml.TAG_NAME, otherVxml.getNodeName());
    final Node otherForm = otherVxml.getFirstChild();
    Assert.assertEquals(Form.TAG_NAME, otherForm.getNodeName());
}