@Test
public void testBatchDelete() throws Exception {

    List<Person> pl = new ArrayList<>();
    for (int k = 0; k < TABLE_MODE; k++) {
        Person pk = new Person();
        pk.setPeopleID(k + 1);
        pk.setCountryID(k);
        pk.setCityID(k);
        pl.add(pk);
    }
    int[] ret = dao.batchDelete(pl);
    for(int i: ret)
        assertEquals(1, i);
    
    assertEquals(TABLE_MODE, ret.length);
    
    for(Person pk: pl) {
        clearDeletionFlag(pk);
        assertNull(dao.queryByPk(pk));
    }
}