String string = "!Foo(a, b)";
RelationsEnvironment env = new RelationsEnvironment();
env.addRelation(new Relation("Foo", new String[] {"Bar", "Baz"}));
FPLParser parser = new FPLParser(string, env, new StubIType());
Predicate pred = parser.expression();
Assert.assertTrue("Parsed predicate should be a RelationshipPredicate, but is " + pred.getClass().getCanonicalName(), pred instanceof RelationshipPredicate);
RelationshipPredicate val = (RelationshipPredicate)pred;
Assert.assertTrue("Parsed predicate should be negative", !val.isPositive());