SchemaUtils utils = SchemaUtils.getInstance();
String typeNS = "http://org.jboss/types";
String arrTypeNS = "http://org.jboss/types/arrays/org/jboss/test/ws/tools/jbws_161/custom";
String arr[] = {"resources/tools/wsdlfixture/customtype/CustomTypeObj.xsd",
"resources/tools/wsdlfixture/customtype/CustomTypeArrays.xsd"};
XSLoader xsloader = utils.getXSLoader();
Map map = new HashMap();
map.put(typeNS,new File("resources/tools/wsdlfixture/customtype/CustomTypeObj.xsd").toURL());
map.put(arrTypeNS,new File("resources/tools/wsdlfixture/customtype/CustomTypeArrays.xsd").toURL());
((XMLSchemaLoader)xsloader).setEntityResolver(new JBossXSEntityResolver(new JBossWSEntityResolver(), map));
//Construct a StringList
StringList slist = new StringListImpl(arr, 2);
XSModel xsmodel = xsloader.loadURIList(slist);
assertNotNull("XSModel is null?", xsmodel);
XSNamedMap xsnamedmap = getXSNamedMap(xsmodel, typeNS);
assertNotNull("XSNamedMap is null?", xsnamedmap);
assertEquals(1, xsnamedmap.getLength());