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

    final URI dtmfUri = new URI("builtin:dtmf/boolean");
    final InputStream input = strategy.getInputStream(null, dtmfUri, null,
            0, null);
    final InputSource source = new InputSource(input);
    final SrgsXmlDocument dtmfDocument = new SrgsXmlDocument(source);
    input.close();
    final Grammar dtmfGrammar = dtmfDocument.getGrammar();
    Assert.assertEquals(ModeType.DTMF, dtmfGrammar.getMode());
    final URI voiceUri = new URI("builtin:voice/boolean");
    final InputStream voiceInput = strategy.getInputStream(null, voiceUri,
            null, 0, null);
    final InputSource voiceSource = new InputSource(voiceInput);
    final SrgsXmlDocument voiceDocument = new SrgsXmlDocument(voiceSource);
    input.close();
    final Grammar voiceGrammar = voiceDocument.getGrammar();
    Assert.assertEquals(ModeType.VOICE, voiceGrammar.getMode());
    final URI grammarUri = new URI("builtin:grammar/boolean");
    final InputStream grammarInput = strategy.getInputStream(null,
            grammarUri, null, 0, null);
    final InputSource grammarSource = new InputSource(grammarInput);
    final SrgsXmlDocument gramamrDocument =
        new SrgsXmlDocument(grammarSource);
    input.close();
    final Grammar grammarGrammar = gramamrDocument.getGrammar();
    Assert.assertEquals(ModeType.VOICE, grammarGrammar.getMode());
}