@Test
public void testParse_NotOp__simple() throws Exception {

  List<Token> listTokens = new ArrayList<Token>();
  //!a=b
  listTokens.add(new Token(Token.TYPE.LOGICAL_UNARY_OPERATOR, "!"));
  listTokens.add(new Token(Token.TYPE.RELATIONAL_OPERATOR, "="));
  listTokens.add(new Token(Token.TYPE.PROPERTY_OPERAND, "a"));
  listTokens.add(new Token(Token.TYPE.VALUE_OPERAND, "b"));
  QueryParser parser = new QueryParser();
  Predicate p = parser.parse(listTokens.toArray(new Token[listTokens.size()]));
  assertEquals(new NotPredicate(new EqualsPredicate<String>("a", "b")), p);
}