DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();
documentBuilderFactory.setNamespaceAware(true);
Document doc = documentBuilderFactory.newDocumentBuilder().
parse(Resources.asURI("allSimpleTypes.xsd"));
XmlSchemaCollection schemaCol = new XmlSchemaCollection();
XmlSchema schema = schemaCol.read(doc,null);
assertNotNull(schema);
//loop through the schema elements and inspect the SchemaTypeObject
//if the type is registered, then getSchemaType should return a SchemaType
//object