@Test
public void testWithCycle3_assertNoLoop()
                        throws Exception {

    GMLAppSchemaReader xsdDecoder = new GMLAppSchemaReader( null, null, schemaWithCycle3 );
    AppSchema appSchema = xsdDecoder.extractAppSchema();
    CRSRef storageCrs = CRSManager.getCRSRef( "EPSG:4326" );
    GeometryStorageParams geometryParams = new GeometryStorageParams( storageCrs, String.valueOf( "0" ), DIM_2 );
    AppSchemaMapper mapper = new AppSchemaMapper( appSchema, false, true, geometryParams, 63, true, true, 2 );
    MappedAppSchema mappedSchema = mapper.getMappedSchema();
    Map<QName, FeatureTypeMapping> ftMappings = mappedSchema.getFtMappings();
    assertThat( ftMappings.size(), is( 1 ) );
}