@Test
public void testFreeVars() {
SpecVar[] vars = new SpecVar[] {utils.getVar(0), utils.getVar(1)};
MethodInvocationOp invoke = new MethodInvocationOp("mName", "Foo", vars, new String[] {"Foo", "Bar"}, "Bar", false);
FreeVars fv = invoke.getFreeVariables();
assertEquals("Foo", fv.getType(Constraint.RECEIVER));
assertEquals("Bar", fv.getType(Constraint.RESULT));
assertEquals("Foo", fv.getType(utils.getVar(0)));
assertEquals("Bar", fv.getType(utils.getVar(1)));
assertEquals(4, fv.size());
}