String inputStr = "select a, b from a where true and not a > 10 group by a, b";
SelectStatement actual = TestUtil.parser(inputStr).select_statement().stmt;
SelectStatement expected = new SelectStatement();
expected.setSelectClause(new SelectClause().add(new FieldEvaluator("a")).add(new FieldEvaluator("b")));
expected.setFromClause(new FromClause().add(new FromEntity("a")));
expected.setWhereClause(
new WhereClause(
new AndEvaluator(
new BooleanEvaluator("TRUE"),
new NotEvaluator(
new RelationEvaluator(
new FieldEvaluator("a"),
RelationEvaluator.Type.GREATER_THAN,
new DecimalEvaluator("10"))))));
expected.setGroupByClause(new GroupByClause().add("a").add("b"));