}
@Test
public void testAttributeInitialization() {
FamixMethod testInit = (FamixMethod) aModel.getElement(aFactory.createMethod("testPackage.ae.Test.<oinit>()", null));
FamixAttribute simpleAttribute = (FamixAttribute) aModel.getElement(aFactory.createAttribute("testPackage.ae.Test.c", null));
Set<FamixAssociation> lRelations = aModel.getAssociations(testInit);
assertTrue("FamixMethod " + testInit.getUniqueName() + " must contain relationships", lRelations.size() > 0);
int containsAccessTo = TestHelper.containsRelationTo(simpleAttribute, lRelations);
assertTrue("Missing access relationship from " + testInit.getUniqueName() + " to " + simpleAttribute.getUniqueName(), containsAccessTo > 0);
FamixMethod baseInit = (FamixMethod) aModel.getElement(aFactory.createMethod("testPackage.Base.<oinit>()", null));
FamixAttribute baseAttribute = (FamixAttribute) aModel.getElement(aFactory.createAttribute("testPackage.Base.a", null));
lRelations = aModel.getAssociations(baseInit);
assertTrue("FamixMethod " + baseInit.getUniqueName() + " must contain relationships", lRelations.size() > 0);
containsAccessTo = TestHelper.containsRelationTo(baseAttribute, lRelations);
assertTrue("Missing access relationship from " + baseInit.getUniqueName() + " to " + baseAttribute.getUniqueName(), containsAccessTo > 0);
}