@Test
public void testUnaryNot() throws Exception {

  QueryLexer lexer = new QueryLexer();
  Token[] tokens = lexer.tokens("!foo<5");
  List<Token> listTokens = new ArrayList<Token>();
  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, "foo"));
  listTokens.add(new Token(Token.TYPE.VALUE_OPERAND, "5"));
  assertArrayEquals(listTokens.toArray(new Token[listTokens.size()]), tokens);
}