@Test
public void testBatchInsert() throws Exception {

    List<Person> pl = new ArrayList<>();
    for(int k = 0; k < TABLE_MODE;k++) {
        Person p = new Person();
        p.setName("jerry");
        p.setCountryID(k);
        p.setCityID(k);
        pl.add(p);
    }
    int[] ret = dao.batchInsert(pl);
    for(int x: ret)
        assertEquals(batchRet, x);
    
    assertEquals(TABLE_MODE, ret.length);
    
    Person p = new Person();
    p.setName("jerry");
    List<Person> plist = dao.queryBySample(p);
    assertNotNull(plist);
    assertEquals(TABLE_MODE, plist.size());
    
    for(Person p1: plist)
        assertNotNull(p1.getPeopleID());
}