" <xsd:pattern value='\\d{3}-[A-Z]{2}'/>\n" +
" </xsd:restriction>\n" +
" </xsd:simpleType>\n" +
"</xsd:schema>\n";
JAXBParser parser = newJAXBParser();
InputSource isource = new InputSource(new StringReader(schemaSource));
isource.setSystemId("testPurchaseOrder.xsd");
JAXBSchema schema = (JAXBSchema) parser.parse(isource);
JAXBGlobalBindings globalBindings = schema.getJAXBGlobalBindings();
assertNotNull(globalBindings);
XSType[] schemaTypes = schema.getTypes();
assertNotNull(schemaTypes);