@Test public void testParsingCityGML() throws ClassCastException, ClassNotFoundException, InstantiationException, IllegalAccessException { String schemaURL = "http://schemas.opengis.net/citygml/profiles/base/1.0/CityGML.xsd"; ApplicationSchemaXSDDecoder adapter = new ApplicationSchemaXSDDecoder(GMLVersion.GML_31, null, schemaURL); ApplicationSchema schema = adapter.extractFeatureTypeSchema(); FeatureType[] fts = schema.getFeatureTypes(); Assert.assertEquals(54, fts.length); FeatureType buildingFt = schema.getFeatureType( QName.valueOf("{http://www.opengis.net/citygml/building/1.0}Building")); PropertyType<?> pt = buildingFt.getPropertyDeclaration( QName.valueOf( "{http://www.opengis.net/citygml/1.0}_GenericApplicationPropertyOfCityObject")); Assert.assertEquals(8, pt.getSubstitutions().length); }