@Test
public void testGetRootRule() throws Exception {

    final SrgsXmlDocument document = new SrgsXmlDocument();
    final Grammar grammar = document.getGrammar();
    grammar.setRoot("test");
    final Rule rule = grammar.appendChild(Rule.class);
    rule.makePublic();
    rule.setId("test");
    final Rule rootRule = grammar.getRootRule();
    Assert.assertEquals(rule, rootRule);
}