}
@Test
public void testEnumConstantContainer() {
FamixClass parentClass = (FamixClass) aModel.getElement(aFactory.createClass("testPackage.ae.EnumPlanet", null));
FamixAttribute enumConstantMERCURY = (FamixAttribute) aModel.getElement(aFactory.createAttribute("testPackage.ae.EnumPlanet.MERCURY", null));
FamixAttribute enumConstantVENUS = (FamixAttribute) aModel.getElement(aFactory.createAttribute("testPackage.ae.EnumPlanet.VENUS", null));
assertNotNull("FamixModel must contain class testPackage.ae.EnumPlanet", parentClass);
assertNotNull("FamixModel must contain method testPackage.ae.EnumPlanet.MERCURY", enumConstantMERCURY);
assertNotNull("FamixModel must contain method testPackage.ae.EnumPlanet.VENUS", enumConstantVENUS);
assertTrue("FamixClass must contain simple attribute " + enumConstantMERCURY.getUniqueName(), parentClass.getAttributes().contains(enumConstantMERCURY));
assertEquals("No or wrong parent class for attribute " + enumConstantMERCURY.getUniqueName(), parentClass, enumConstantMERCURY.getParent());
assertTrue("FamixClass must contain simple attribute " + enumConstantVENUS.getUniqueName(), parentClass.getAttributes().contains(enumConstantVENUS));
assertEquals("No or wrong parent class for attribute " + enumConstantVENUS.getUniqueName(), parentClass, enumConstantVENUS.getParent());
assertEquals("Type of attribute MERCURY must be " + parentClass.getUniqueName(), parentClass, enumConstantMERCURY.getDeclaredClass());
assertEquals("Type of attribute VENUS must be " + parentClass.getUniqueName(), parentClass, enumConstantVENUS.getDeclaredClass());
assertEquals("Modifier of attribute " + enumConstantMERCURY.getUniqueName() + " must be " + AbstractFamixEntity.MODIFIER_PUBLIC, AbstractFamixEntity.MODIFIER_PUBLIC, enumConstantMERCURY.getModifiers() & AbstractFamixEntity.MODIFIER_PUBLIC);
assertEquals("Modifier of attribute " + enumConstantMERCURY.getUniqueName() + " must be " + AbstractFamixEntity.MODIFIER_FINAL, AbstractFamixEntity.MODIFIER_FINAL, enumConstantMERCURY.getModifiers() & AbstractFamixEntity.MODIFIER_FINAL);
assertEquals("Modifier of attribute " + enumConstantMERCURY.getUniqueName() + " must be " + AbstractFamixEntity.MODIFIER_STATIC, AbstractFamixEntity.MODIFIER_STATIC, enumConstantMERCURY.getModifiers() & AbstractFamixEntity.MODIFIER_STATIC);
}