@Test
public void testCountBySample() throws Exception {

    Person pk = new Person();
    pk.setName("test");
    assertEquals(4, dao.countBySample(pk));
    
    for(int j = 0; j < TABLE_MODE;j++) {
        pk = new Person();
        pk.setPeopleID(j+1);
        assertEquals(1, dao.countBySample(pk));
        
        pk = new Person();
        pk.setCountryID(j);
        pk.setCityID(j);
        assertEquals(1, dao.countBySample(pk));
    }
}