@Test
public void testParse_EquOp_HostName() throws Exception {

  List<Token> listTokens = new ArrayList<Token>();
  //a=1&!b=2
  listTokens.add(new Token(Token.TYPE.RELATIONAL_OPERATOR, "="));
  listTokens.add(new Token(Token.TYPE.PROPERTY_OPERAND, "HostRoles/host_name"));
  listTokens.add(new Token(Token.TYPE.VALUE_OPERAND, "HOST1"));
  QueryParser parser = new QueryParser();
  Predicate p = parser.parse(listTokens.toArray(new Token[listTokens.size()]));
  EqualsPredicate equalsPred = new EqualsPredicate<String>("HostRoles/host_name", "host1");
  assertEquals(equalsPred, p);
}