VoiceXmlInterpreterContext { public VoiceXmlDocument loadDocument(final DocumentDescriptor descriptor) throws BadFetchError { final VoiceXmlDocument doc = acquireVoiceXmlDocument(descriptor); final URI uri = descriptor.getUri(); if (application != null) { final URI resolvedUri = application.resolve(uri); application.addDocument(resolvedUri, doc); } return doc; } VoiceXmlInterpreterContext(final JVoiceXmlSession currentSession,
            final Configuration config);  VoiceXmlInterpreterContext(final JVoiceXmlSession currentSession,
            final Configuration config, final ScopeObserver observer,
            final DataModel dataModel); Session getSession(); Profile getProfile(); ScopeObserver getScopeObserver(); ImplementationPlatform getImplementationPlatform(); GrammarProcessor getGrammarProcessor(); Configuration getConfiguration(); DataModel getDataModel(); EventBus getEventBus(); EventHandler getEventHandler(); void enterScope(final Scope scope); void exitScope(final Scope scope); void close(); ActiveGrammarSet getActiveGrammarSet(); void setProperty(final String name, final String value); String getProperty(final String name); String getProperty(final String name, final String defValue); SpeechRecognizerProperties getSpeechRecognizerProperties(
            final FormInterpretationAlgorithm fia); DtmfRecognizerProperties getDtmfRecognizerProperties(
            final FormInterpretationAlgorithm fia); CallControlProperties getCallControlProperties(
            final FormInterpretationAlgorithm fia); void setApplication(final Application value); Application getApplication(); void process(final Application appl); void processSubdialog(final Application appl,
            final DocumentDescriptor desc,
            final Map<String, Object> parameters); VoiceXmlDocument loadDocument(final DocumentDescriptor descriptor); DocumentServer getDocumentServer(); VoiceXmlDocument acquireVoiceXmlDocument(
            final DocumentDescriptor descriptor); GrammarDocument acquireExternalGrammar(final URI uri,
            final FetchAttributes attributes);  }
@Test public void testLoadDocument() 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 Document retrievedDocument = context.loadDocument(descriptor); Assert.assertEquals(document.toString(), retrievedDocument.toString()); }