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

    final VoiceXmlDocument document = new VoiceXmlDocument();
    final URI uri = map.getUri("/test");
    map.addDocument(uri, document);
    final DocumentDescriptor descriptor = new DocumentDescriptor(uri);
    final Session session = Mockito.mock(Session.class);
    Mockito.when(session.getSessionId()).thenReturn(
            UUID.randomUUID().toString());
    final String sessionId = session.getSessionId();
    final VoiceXmlDocument retrievedDocument = server.getDocument(
            sessionId, descriptor);
    Assert.assertEquals(document.toString(), retrievedDocument.toString());
}