PolicyType policyType,
String expectedElementName,
String expectedSubElementName) {
JDOMFactory factory = new DefaultJDOMFactory();
Element policy = factory.element("policy");
composition.addTypeElement(policy, policyType, factory);
assertEquals("There should be a single child element of policy.",
1, policy.getChildren().size());
Element type = (Element) policy.getChildren().get(0);
assertEquals("Expected a " +