@Test
public void testUpdate() throws Exception {

    for (int k = 0; k < TABLE_MODE; k++) {
        Person pk = new Person();
        pk.setPeopleID(k + 1);
        pk.setName("Tom");
        pk.setCountryID(100);
        pk.setCityID(200);
        assertEquals(1, dao.update(pk));
        pk = dao.queryByPk(pk);
        
        assertEquals("Tom", pk.getName());
        assertEquals(100, pk.getCountryID().intValue());
        assertEquals(200, pk.getCityID().intValue());
    }
}