"</schema>";
String TARGET_NAMESPACE = "http://org.jboss.ws/types";
QName xmlType = new QName(TARGET_NAMESPACE, "Derived", "ns1");
String nsuri = xmlType.getNamespaceURI();
JavaToXSD javaToXSD = new JavaToXSD();
Map packageNamespace = new HashMap();
packageNamespace.put(Derived.class.getPackage().getName(), nsuri);
javaToXSD.setPackageNamespaceMap(packageNamespace);
JBossXSModel xsmodel = javaToXSD.generateForSingleType(xmlType, Derived.class);
Element expEl = DOMUtils.parse(exp);
Element actEl = DOMUtils.parse(xsmodel.serialize());
assertEquals(expEl,actEl);
}