NamedTypeBinding[] vBindings = new NamedTypeBinding[] {new NamedTypeBinding("Foo"), new NamedTypeBinding("Bar")};
StubMethodCallInstruction instr = new StubMethodCallInstruction("mName", rVar, params, new StubMethodBinding(rBinding, vBindings), tVar);
SpecVar[] vars = new SpecVar[] {utils.getVar(0), utils.getVar(1)};
String[] vTypes = new String[] {"Foo", "Bar"};
MethodInvocationOp op = new MethodInvocationOp("mName", "Foo", vars, vTypes, "Bar", false);
ConsList<Binding> list = op.matches(new EqualityOnlyTypeHierarchy(), null, instr);
assertTrue(list != null);
assertTrue(list.contains(new Binding(Constraint.RESULT, tVar)));
assertTrue(list.contains(new Binding(Constraint.RECEIVER, rVar)));
assertTrue(list.contains(new Binding(utils.getVar(0), rVar)));