assertEquals("No or wrong parent method for local variable simpleLocal", simpleMethod, simpleLocal.getParent());
}
@Test
public void testMethodLocalVariableContainsMulti() {
FamixMethod simpleMethod = (FamixMethod) aModel.getElement(aFactory.createMethod("testPackage.Variables.m(int,int[])", null));
FamixLocalVariable multiLocal1 = aFactory.createLocalVariable("testPackage.Variables.m(int,int[]).multi1", null);
multiLocal1.setSourceAnchor(new SourceAnchor("/TestProject1/src/testPackage/Variables.java", 0, 450));
multiLocal1 = (FamixLocalVariable) aModel.getElement(multiLocal1);
FamixLocalVariable multiLocal2 = aFactory.createLocalVariable("testPackage.Variables.m(int,int[]).multi2", null);
multiLocal2.setSourceAnchor(new SourceAnchor("/TestProject1/src/testPackage/Variables.java", 0, 458));
multiLocal2 = (FamixLocalVariable) aModel.getElement(multiLocal2);
assertNotNull("FamixModel must contain local variable testPackage.Variables.m(int,int[]).multi1", multiLocal1);
assertNotNull("FamixModel must contain local variable testPackage.Variables.m(int,int[]).multi2", multiLocal2);
assertTrue("FamixMethod must contain local variable", simpleMethod.getLocalVariables().size() > 0);
boolean containsLocal1 = TestHelper.containsLocalVariable(simpleMethod, multiLocal1);
assertTrue("FamixMethod must contain local variable multiLocal1", containsLocal1);
assertEquals("No or wrong parent method for local variable multiLocal1", simpleMethod, multiLocal1.getParent());