FamixMethod innerConstructor = (FamixMethod) aModel.getElement(aFactory.createMethod("testPackage.ae.Test$Inner.<init>()", null));
Set<FamixAssociation> lRelations = aModel.getAssociations(caller);
assertTrue("FamixMethod " + caller.getUniqueName() + " must contain relationships", lRelations.size() > 0);
// invokes Inner class constructor
boolean containsInvocationTo = TestHelper.containsRelationTo(new FamixInvocation(caller, innerConstructor), lRelations);
assertTrue("Missing constructor invocation relationship from " + caller.getUniqueName() + " to " + innerConstructor.getUniqueName(), containsInvocationTo);
// invokes innerMethod
containsInvocationTo = TestHelper.containsRelationTo(new FamixInvocation(caller, innerMethod), lRelations);
assertTrue("Missing invocation relationship from " + caller.getUniqueName() + " to " + innerMethod.getUniqueName(), containsInvocationTo);
}