@Test
public void testCreateGrammarParameters() throws Exception, BadFetchError {

    final GrammarCreator creator = new BooleanGrammarCreator();
    final URI uri1 = new URI("builtin:dtmf/boolean?y=7;n=9");
    final byte[] bytes1 = creator.createGrammar(uri1);
    final ByteArrayInputStream in1 = new ByteArrayInputStream(bytes1);
    final InputSource source1 = new InputSource(in1);
    final SrgsXmlDocument document1 = new SrgsXmlDocument(source1);
    final Grammar grammar1 = document1.getGrammar();
    Assert.assertEquals(ModeType.DTMF, grammar1.getMode());
    final URI uri2 = new URI("builtin:dtmf/boolean?y=7");
    final byte[] bytes2 = creator.createGrammar(uri2);
    final ByteArrayInputStream in2 = new ByteArrayInputStream(bytes2);
    final InputSource source2 = new InputSource(in2);
    final SrgsXmlDocument document2 = new SrgsXmlDocument(source2);
    final Grammar grammar2 = document2.getGrammar();
    Assert.assertEquals(ModeType.DTMF, grammar2.getMode());
}