@Test
public void testQueryTopObj() throws Exception {

    if(dbCategory == MySql)
        return;
    PersonDefinition p = Person.PERSON;
    SqlBuilder builder = selectTop(3, p.PeopleID).from(p).orderBy(p.PeopleID.asc()).intoObject();
    List plist = dao.query(builder);
    assertEquals(3, plist.size());
    for(int i = 0; i < plist.size(); i++){
        assertEquals(i + 1, ((Number)plist.get(i)).intValue());
    }
}