XsQName fooQualified = new XsQName("http://test.com/namespaces", "foo");
XsQName fooUnQualified = new XsQName((String) null, "foo");
XsQName barQualified = new XsQName("http://test.com/namespaces", "bar");
XsQName barUnQualified = new XsQName((String) null, "bar");
XSParser parser = newJAXBParser();
InputSource isource = new InputSource(new StringReader(pSchema));
XSSchema schema = parser.parse(isource);
XSElement[] schemaElements = schema.getElements();
assertEquals(1, schemaElements.length);
assertEquals(fooQualified, schemaElements[0].getName());
XSAttribute[] schemaAttributes = schema.getAttributes();
assertEquals(1, schemaAttributes.length);