@Test
public void testParsingNAS511()
                        throws ClassCastException, ClassNotFoundException, InstantiationException,
                        IllegalAccessException {

    String schemaURL = TestProperties.getProperty( "schema_nas511" );
    if ( schemaURL == null ) {
        return;
    }
    GMLAppSchemaReader adapter = new GMLAppSchemaReader( GMLVersion.GML_30, null, schemaURL );
    AppSchema schema = adapter.extractAppSchema();
    Assert.assertEquals( 237, schema.getFeatureTypes().length );
    QName ftName = new QName( "http://www.adv-online.de/namespaces/adv/gid/5.1.1", "AX_BesondereFlurstuecksgrenze" );
    FeatureType ft = adapter.extractAppSchema().getFeatureType( ftName );
    QName propName = new QName( "http://www.adv-online.de/namespaces/adv/gid/5.1.1", "position" );
    GeometryPropertyType pt = (GeometryPropertyType) ft.getPropertyDeclaration( propName );
    assertEquals( 2, pt.getAllowedGeometryTypes().size() );
    assertTrue( pt.getAllowedGeometryTypes().contains( GeometryPropertyType.GeometryType.CURVE ) );
    assertTrue( pt.getAllowedGeometryTypes().contains( GeometryPropertyType.GeometryType.COMPOSITE_CURVE ) );
}