@Test
public void testFieldAndWhereClause() throws Exception {

   QueryDef query = new QueryDef("test", UserEntity.class, QueryType.SELECT, "SELECT <FIELD name='user-id'/> FROM <TABLE/> WHERE <FIELD name='user-name'/> IS NOT NULL");
   Readset<?> readset = UserEntity.READSET_FULL;
   User user = new User();
   QueryContext ctx = getSelectContext(query, user, readset);
   
   m_queryResolver.resolve(ctx);
   Assert.assertEquals("SELECT u.user_id FROM `user` u WHERE u.full_name IS NOT NULL", ctx.getSqlStatement());
   Assert.assertEquals(true, ctx.isTableResolved());
   Assert.assertEquals("[user-id]", ctx.getOutFields().toString());
}