@Test
public void testSetType() throws Exception {

    final SrgsXmlDocument document = new SrgsXmlDocument();
    final Grammar grammar = document.getGrammar();
    grammar.setType(GrammarType.SRGS_XML);
    Assert.assertEquals(GrammarType.SRGS_XML, grammar.getType());
    Assert.assertEquals(GrammarType.SRGS_XML.getType(),
            grammar.getTypename());
}