@Test
public void testIsPublic() throws Exception {

    final SrgsXmlDocument document = new SrgsXmlDocument();
    final Grammar grammar = document.getGrammar();
    final Rule rule = grammar.appendChild(Rule.class);
    Assert.assertFalse(rule.isPublic());
    rule.makePublic();
    Assert.assertTrue(rule.isPublic());
    rule.setScope("private");
    Assert.assertFalse(rule.isPublic());
}