FamixClass classSum = (FamixClass) aModel.getElement(aFactory.createClass("testPackage.Sum", null));
// check metho rel. container
Set<FamixAssociation> lRelations = aModel.getAssociations(method);
assertTrue("FamixMethod " + method.getUniqueName() + " must contain relationships", lRelations.size() > 0);
boolean containsRelTo = TestHelper.containsRelationTo(new FamixCheckInstanceOf(method, classSum), lRelations);
assertTrue("Missing instanceOf relationship from " + method.getUniqueName() + " to " + classSum.getUniqueName(), containsRelTo);
// check instanOf class rel. container
lRelations = aModel.getAssociations(classSum);
assertTrue("FamixClass " + classSum.getUniqueName() + " must contain relationships", lRelations.size() > 0);
containsRelTo = TestHelper.containsRelationTo(new FamixCheckInstanceOf(method, classSum), lRelations);
assertTrue("Missing instanceOf relationship from " + method.getUniqueName() + " to " + classSum.getUniqueName(), containsRelTo);
}