QueryParser parser = new QueryParser(Token.tokenize("SELECT * \n" +
"FROM foo \n" +
"WHERE foo.bar = :val"), makeSampleDBData());
SelectStatement select = parser.parseTopLevelSelect();
assertNotNull(select);
assertNotNull(select.firstToken().toString());
String sql = select.toSQL();
System.out.println(sql);
assertNotNull(sql);
List<VariableExpression> vars = select.findDescendents(VariableExpression.class);
VariableExpression var = vars.get(0);