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

    String schemaUrl = this.getClass().getResource( "../aixm/schema/message/AIXM_BasicMessage.xsd" ).toString();
    GMLAppSchemaReader adapter = new GMLAppSchemaReader( null, null, schemaUrl );
    AppSchema schema = adapter.extractAppSchema();
    GMLSchemaInfoSet gmlSchema = schema.getGMLSchema();
    String aixmNs = "http://www.aixm.aero/schema/5.1";
    QName ftName = new QName( aixmNs, "Unit" );
    FeatureType ft = schema.getFeatureType( ftName );
    QName propName = new QName( aixmNs, "timeSlice" );
    PropertyType pt = ft.getPropertyDeclaration( propName );
    XSElementDeclaration propDecl = pt.getElementDecl();
    GMLPropertySemantics propertySemantics = gmlSchema.getTimeSlicePropertySemantics( propDecl );
    assertNotNull( propertySemantics );
    propName = new QName( GML3_2_NS, "identifier" );
    pt = ft.getPropertyDeclaration( propName );
    propDecl = pt.getElementDecl();
    propertySemantics = gmlSchema.getTimeSlicePropertySemantics( propDecl );
    assertNull( propertySemantics );
}