### Question:
Rule extends AbstractSrgsNode implements VoiceXmlNode { public void makePublic() { setScope("public"); } Rule();   Rule(final Node node); private  Rule(final Node n,
            final XmlNodeFactory<? extends XmlNode> factory); String getTagName(); XmlNode newInstance(final Node n,
            final XmlNodeFactory<? extends XmlNode> factory); String getId(); void setId(final String id); String getScope(); void setScope(final String scope); void makePrivate(); void makePublic(); boolean isPublic(); Text addText(final String text); @Override Collection<String> getAttributeNames(); static final String TAG_NAME; static final String ATTRIBUTE_ID; static final String ATTRIBUTE_SCOPE; }### Answer:
@Test public void testMakePublic() throws Exception { final SrgsXmlDocument document = new SrgsXmlDocument(); final Grammar grammar = document.getGrammar(); final Rule rule = grammar.appendChild(Rule.class); rule.makePublic(); Assert.assertEquals("public", rule.getScope()); }