@Test
public void testMethodLocalVariableContainsMulti() {
FamixMethod simpleMethod = (FamixMethod) fModel.getElement(fFactory.createMethod("testPackage.Test3.gather()",null));
assertNotNull("FamixModel must contain method testPackage.Test3.gather()", simpleMethod);
FamixLocalVariable multiLocal1 = fFactory.createLocalVariable("testPackage.Test3.gather().gigs1",simpleMethod);
multiLocal1.setSourceAnchor(new SourceAnchor("/TestProject/src/testPackage/Test3.java", 249, 254));
multiLocal1 = (FamixLocalVariable) fModel.getElement(multiLocal1);
FamixLocalVariable multiLocal2 = fFactory.createLocalVariable("testPackage.Test3.gather().gigs2",simpleMethod);
multiLocal2.setSourceAnchor(new SourceAnchor("/TestProject/src/testPackage/Test3.java", 257, 262));
multiLocal2 = (FamixLocalVariable) fModel.getElement(multiLocal2);
assertNotNull("FamixModel must contain local variable testPackage.Test3.gather().gigs1", multiLocal1);
assertNotNull("FamixModel must contain local variable testPackage.Test3.gather().gigs2", multiLocal2);
assertTrue("FamixMethod must contain local variable", simpleMethod.getLocalVariables().size() > 0);
FamixClass clazz = (FamixClass)fModel.getElement(fFactory.createClass("<undef>.Gigs",null));
assertNotNull("FamixModel must contain class <undef>.Gigs", clazz);
boolean containsLocal1 = containsLocalVariable(simpleMethod, multiLocal1);
assertTrue("FamixMethod must contain local variable multiLocal1", containsLocal1);
assertEquals("No or wrong parent method for local variable multiLocal1", simpleMethod, multiLocal1.getParent());
assertEquals("FamixClass must be equal", clazz, multiLocal1.getDeclaredClass());
boolean containsLocal2 = containsLocalVariable(simpleMethod, multiLocal2);
assertTrue("FamixMethod must contain local variable multiLocal2", containsLocal2);
assertEquals("No or wrong parent method for local variable multiLocal2", simpleMethod, multiLocal2.getParent());
assertEquals("FamixClass must be equla", clazz, multiLocal2.getDeclaredClass());
}