@Test
public void testSelectThreeTables() throws Exception {

   QueryDef query = new QueryDef("test", UserEntity.class, QueryType.SELECT, "<TABLES/>");
   Readset<?> readset = UserEntity.READSET_FULL_WITH_HOME_OFFICE_ADDRESS_FULL;
   User user = new User();
   QueryContext ctx = getSelectContext(query, user, readset);
   m_queryResolver.resolve(ctx);
   Assert.assertEquals("`user` u, user_address hua, user_address oua", ctx.getSqlStatement());
   Assert.assertEquals(true, ctx.isTableResolved());
}