@Test
public void testParse_isEmptyOp__exception2() throws Exception {

  List<Token> listTokens = new ArrayList<Token>();
  // category1.isEmpty()
  listTokens.add(new Token(Token.TYPE.RELATIONAL_OPERATOR_FUNC, ".isEmpty("));
  listTokens.add(new Token(Token.TYPE.PROPERTY_OPERAND, "category1"));
  listTokens.add(new Token(Token.TYPE.VALUE_OPERAND, "one,two,3"));
  listTokens.add(new Token(Token.TYPE.BRACKET_CLOSE, ")"));
  QueryParser parser = new QueryParser();
  try {
    parser.parse(listTokens.toArray(new Token[listTokens.size()]));
    fail("Expected InvalidQueryException due to existence of right operand");
  } catch (InvalidQueryException e) {
    // expected
  }
}