DynamicRuleConfigurator configurator =
factory.getRuleConfigurator();
configurator.configure(configuration);
MutableExpandedName expandedName = new MutableExpandedName();
expandedName.setNamespaceURI(Namespace.TEMPLATE.getURI());
// ensure the apply rule has been added
expandedName.setLocalName("apply");
assertNotNull("apply rule has not been added",
configuration.getRule(expandedName));
// ensure the binding rule has been added
expandedName.setLocalName("binding");
assertNotNull("binding rule has not been added",
configuration.getRule(expandedName));
// ensure the definition rule has been added
expandedName.setLocalName("definition");
assertNotNull("definition rule has not been added",
configuration.getRule(expandedName));
// ensure the documentation rule has been added
expandedName.setLocalName("documentation");
assertNotNull("documentation rule has not been added",
configuration.getRule(expandedName));
// ensure the parameter rule has been added
expandedName.setLocalName("parameter");
assertNotNull("parameter rule has not been added",
configuration.getRule(expandedName));
// ensure the value rule has been added
expandedName.setLocalName("value");
assertNotNull("value rule has not been added",
configuration.getRule(expandedName));
}