tester.diagnose().assertOK();
// -- test and / or
AndExpression and = pf.createAndExpression();
and.setLeftExpr(predicate);
OrExpression or = pf.createOrExpression();
EqualityExpression predicate2 = pf.createEqualityExpression();
predicate2.setLeftExpr(createNameOrReference("name"));
predicate2.setOpName("!=");
predicate2.setRightExpr(createNameOrReference("Darth"));
EqualityExpression predicate3 = pf.createEqualityExpression();
predicate3.setLeftExpr(createNameOrReference("name"));
predicate3.setOpName("!=");
predicate3.setRightExpr(createNameOrReference("Vader"));
or.setLeftExpr(predicate2);
or.setRightExpr(predicate3);
ParenthesisedExpression pe = pf.createParenthesisedExpression();
pe.setExpr(or);
and.setRightExpr(pe);
eq.setExpr(and);
tester.validator().checkCollectExpression(ce);