public void testGlobalMigrationInterfaceOperation() throws Exception { Ooaofooa testRoot = Ooaofooa.getInstance( "/model_upgrade/models/model_upgrade/InterfacePackage/InterfacePackage.xtuml"); InterfaceOperation_c param = InterfaceOperation_c.InterfaceOperationInstance(testRoot); assertNotNull("Unable to locate test element", param); DataType_c dt = DataType_c.getOneS_DTOnR4008(param); assertNotNull("Unable to locate test element", dt); GlobalElementInSystem_c gis = GlobalElementInSystem_c.getOneG_EISOnR9100(PackageableElement_c.getOnePE_PEOnR8001(dt)); assertNotNull("InterfaceOperation was not migrated to use globals.", gis); assertTrue( "Incorrect data type associated with InterfaceOperation after global migration", dt.getName().equals("real")); }