StringTokenResolver implements TokenResolver { public String resolve(Token token, QueryContext ctx) { return token.toString(); }  String resolve(Token token, QueryContext ctx);  }
@Test public void testString() throws Exception { QueryDef query = new QueryDef("test", UserEntity.class, QueryType.SELECT, "anything"); Readset<?> readset = UserEntity.READSET_FULL; User user = new User(); QueryContext ctx = getSelectContext(query, user, readset); m_queryResolver.resolve(ctx); Assert.assertEquals("anything", ctx.getSqlStatement()); }