FPLParser parser = new FPLParser(string, null, new StubIType());
Predicate pred = parser.expression();
Assert.assertTrue("Parsed predicate should be a InstanceOfPredicate, but is " + pred.getClass().getCanonicalName(), pred instanceof InstanceOfPredicate);
InstanceOfPredicate val = (InstanceOfPredicate)pred;
Assert.assertTrue("Parsed predicate should be negative", !val.isPositive());
FreeVars vars = val.getFreeVariables();
Assert.assertEquals("Should only contain one free variable", 1, vars.size());
Assert.assertEquals("Bar should have a Object type, has type " + vars.getType(new SpecVar("bar")), "java.lang.Object", vars.getType(new SpecVar("bar")));
}