@Test
public void testQueryTopEntity() throws Exception {

    if(dbCategory == MySql)
        return;
    PersonDefinition p = Person.PERSON;
    SqlBuilder builder = selectTop(3, p.PeopleID, p.Name).from(p).orderBy(p.PeopleID.asc()).into(Person.class);
    List<Person> plist = null;
    plist = dao.query(builder);
    assertEquals(3, plist.size());
    for(int i = 0; i < plist.size(); i++){
        assertEquals("test", plist.get(i).getName());
    }
}