@Test
public void testField() throws Exception {

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