@Test
public void classpath() {

    Configuration configuration = new AppSchemaConfiguration("urn:cgi:xmlns:CGI:GeoSciML:2.0",
            "http://www.geosciml.org/geosciml/2.0/xsd/geosciml.xsd", new SchemaResolver());
    SchemaIndex schemaIndex = null;
    try {
        schemaIndex = Schemas.findSchemas(configuration);
        Assert.assertEquals(3, schemaIndex.getSchemas().length);
        String schemaLocation = null;
        for (XSDSchema schema : schemaIndex.getSchemas()) {
            if (schema.getSchemaLocation().endsWith("geosciml.xsd")) {
                schemaLocation = schema.getSchemaLocation();
                break;
            }
        }
        Assert.assertNotNull(schemaLocation);
        Assert.assertTrue(schemaLocation.startsWith("jar:file:"));
    } finally {
        if (schemaIndex != null) {
            schemaIndex.destroy();
        }
    }
}