}
@Test
public void testMethodParameters(){
FamixMethod method = (FamixMethod)fModel.getElement(fFactory.createMethod("testPackage.Test.myMethod(int,double,<undef>.Warlock)",null));
assertNotNull(method);
assertEquals(3, method.getParameters().size());
FamixParameter param = (FamixParameter) fModel.getElement(fFactory.createFormalParameter("testPackage.Test.myMethod(int,double,<undef>.Warlock).i",null,0));
assertNotNull(param);
assertEquals(new Integer(0), param.getParamIndex());
FamixClass clazz = (FamixClass) fModel.getElement(fFactory.createClass("int",null));
assertEquals(clazz, param.getDeclaredClass());
assertTrue(method.getParameters().contains(param));
assertEquals(method, param.getParent());
param = (FamixParameter) fModel.getElement(fFactory.createFormalParameter("testPackage.Test.myMethod(int,double,<undef>.Warlock).d",null,1));
clazz = (FamixClass) fModel.getElement(fFactory.createClass("double",null));
assertEquals(clazz, param.getDeclaredClass());
assertNotNull(param);
assertTrue(method.getParameters().contains(param));
assertEquals(method, param.getParent());
assertEquals(new Integer(1), param.getParamIndex());
param = (FamixParameter) fModel.getElement(fFactory.createFormalParameter("testPackage.Test.myMethod(int,double,<undef>.Warlock).zorf",null,2));
clazz = (FamixClass) fModel.getElement(fFactory.createClass("<undef>.Warlock",null));
assertEquals(clazz, param.getDeclaredClass());
assertNotNull(param);
assertTrue(method.getParameters().contains(param));
assertEquals(method, param.getParent());
assertEquals(new Integer(2), param.getParamIndex());
}