@Test
public void testParse_InOp__exception() throws Exception {

  List<Token> listTokens = new ArrayList<Token>();
  // foo.in()
  listTokens.add(new Token(Token.TYPE.RELATIONAL_OPERATOR_FUNC, ".in("));
  listTokens.add(new Token(Token.TYPE.PROPERTY_OPERAND, "foo"));
  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 missing right operand");
  } catch (InvalidQueryException e) {
    // expected
  }
}