Operation amOperation = new Operation();
amOperation.setName("anotherMethod");
amOperation.setNamespace(amItem.getIdentifier());
Parameter amParameter = new Parameter();
amParameter.setName("aParameter");
amParameter.setNamespace(amOperation.getIdentifier());
amOperation.addParameter(amParameter);
amItem.addMember(amOperation);
model.addModelItem(amItem);
assertFalse(model.equals(other));
ModelItem dmItem = new ModelItem();
dmItem.setName("anotherInterface");
dmItem.setType("interface");
Operation dmOperation = new Operation();
dmOperation.setName("anotherMethod");
dmOperation.setNamespace(dmItem.getIdentifier());
Parameter dmParameter = new Parameter();
dmParameter.setName("aParameter");
dmParameter.setNamespace(dmOperation.getIdentifier());
dmOperation.addParameter(dmParameter);
dmItem.addMember(dmOperation);
other.addModelItem(dmItem);
assertTrue(model.equals(other));
//now the developer adds a parameter to the method:
Parameter newParameter = new Parameter();
newParameter.setName("newParameter");
dmOperation.addParameter(newParameter);
assertFalse(model.equals(other));
}