FPLParser parser = new FPLParser(string, null, new StubIType());
Operation op = parser.operation();
Assert.assertTrue("Parsed predicate should be a BOM, but is " + op.getClass().getCanonicalName(), op instanceof BeginOfMethodOp);
BeginOfMethodOp invoke = (BeginOfMethodOp)op;
FreeVars vars = invoke.getFreeVariables();
Assert.assertEquals("Wrong number of free vars", 3, vars.size());
Assert.assertEquals("Wrong type", "java.lang.Object", vars.getType(Constraint.RECEIVER));
Assert.assertEquals("Wrong type", "Baz", vars.getType(new SpecVar("baz")));
Assert.assertEquals("Wrong type", "Bar", vars.getType(new SpecVar("bar")));
}