public void _attachModel() {
boolean result = false;
requiredMethod("getModel()");
secondModel = (XModel) tEnv.getObjRelation("SecondModel");
XModel gotBefore = oObj.getModel();
boolean attached = oObj.attachModel(secondModel);
XModel gotAfter = oObj.getModel();
if ( attached ) {
if ( ! gotBefore.equals(gotAfter) ) {
if ( gotAfter.equals(secondModel) ) {
result = true;
} else {
log.println("Attached and gotten models are not equal");
log.println("Getting: " + gotAfter.toString());
log.println("Expected: " + secondModel.toString());
}
} else {
log.println("method did not change model");
}