NewObjectInstruction instr = getNOI(target, target);
SpecVar[] vars = new SpecVar[] {utils.getVar(0)};
String[] vTypes = new String[] {"Bar"};
ConstructorOp op = new ConstructorOp("Foo", vars, vTypes);
ConsList<Binding> list = op.matches(new EqualityOnlyTypeHierarchy(), null, instr);
assertTrue(list != null);
assertTrue(list.contains(new Binding(Constraint.RESULT, target)));
assertTrue(list.contains(new Binding(utils.getVar(0), target)));