Pair<ReturnInstruction, Method> pair = getRetAndMethod(var, params, retVar);
EndOfMethodOp op = new EndOfMethodOp(null, null, null, null, "Foo", false);
ConsList<Binding> map = op.matches(new EqualityOnlyTypeHierarchy(), pair.snd(), pair.fst());
assertTrue(map != null);
assertEquals(2, map.size());
assertTrue(map.contains(new Binding(Constraint.RESULT, retVar)));
assertTrue(map.contains(new Binding(Constraint.RECEIVER, var)));