public void testGlobalMigrationBridgeDomain() throws Exception { Ooaofooa testRoot = Ooaofooa.getInstance("/model_upgrade/models/model_upgrade/domain/domain.xtuml"); Bridge_c param = Bridge_c.BridgeInstance( testRoot, new ClassQueryInterface_c() { @Override public boolean evaluate(Object candidate) { return ((Bridge_c) candidate).getName().equals("create_date"); } }); assertNotNull("Unable to locate test element", param); DataType_c dt = DataType_c.getOneS_DTOnR20(param); assertNotNull("Unable to locate test element", dt); GlobalElementInSystem_c gis = GlobalElementInSystem_c.getOneG_EISOnR9100(PackageableElement_c.getOnePE_PEOnR8001(dt)); assertNotNull("Bridge was not migrated to use globals.", gis); assertTrue( "Incorrect data type associated with Bridge after global migration", dt.getName().equals("date")); }