@Test
public void testParse_InOp__HostName() throws Exception {

  List<Token> listTokens = new ArrayList<Token>();
  // foo.in(one,two,3)
  listTokens.add(new Token(Token.TYPE.RELATIONAL_OPERATOR_FUNC, ".in("));
  listTokens.add(new Token(Token.TYPE.PROPERTY_OPERAND, "HostRoles/host_name"));
  listTokens.add(new Token(Token.TYPE.VALUE_OPERAND, "Host1,HOST2,HoSt3"));
  listTokens.add(new Token(Token.TYPE.BRACKET_CLOSE, ")"));
  QueryParser parser = new QueryParser();
  Predicate p = parser.parse(listTokens.toArray(new Token[listTokens.size()]));
  EqualsPredicate ep1 = new EqualsPredicate<>("HostRoles/host_name", "host1");
  EqualsPredicate ep2 = new EqualsPredicate<>("HostRoles/host_name", "host2");
  EqualsPredicate ep3 = new EqualsPredicate<>("HostRoles/host_name", "host3");
  OrPredicate orPredicate = new OrPredicate(ep1, ep2, ep3);
  assertEquals(orPredicate, p);
}