DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();
documentBuilderFactory.setNamespaceAware(true);
Document doc = documentBuilderFactory.newDocumentBuilder().
parse(Resources.asURI("importBase.xsd"));
XmlSchemaCollection schemaCol = new XmlSchemaCollection();
schemaCol.setBaseUri(Resources.TEST_RESOURCES);
XmlSchema schema = schemaCol.read(doc,null);
assertNotNull(schema);
// attempt with slash now
schemaCol = new XmlSchemaCollection();
schemaCol.setBaseUri(Resources.TEST_RESOURCES + "/");
schema = schemaCol.read(doc,null);
assertNotNull(schema);
}