" <xs:element ref='ns:head'/>\n" +
" </xs:sequence>\n" +
" </xs:complexType>\n" +
"</xs:schema>\n";
JAXBParser parser = newJAXBParser();
InputSource isource = new InputSource(new StringReader(schemaSource1));
isource.setSystemId("testTargetNamespace1.xsd");
XSSchema schema = parser.parse(isource);
XSElement[] elements = schema.getElements();
assertEquals(3, elements.length);
XsQName headName = new XsQName("http://test.com/namespaces", "head");
XsQName subst1Name = new XsQName("http://test.com/namespaces", "subst1");
XsQName subst2Name = new XsQName("http://test.com/namespaces", "subst2");