@Test
public void testQueryBySample() throws Exception {

    for(int j = 0; j < TABLE_MODE;j++) {
        Person pk = new Person();
        pk.setName("test");
        List<Person> plist = dao.queryBySample(pk);
        assertNotNull(plist);
        assertEquals(4, plist.size());
        for(Person p: plist)
            assertEquals("test", p.getName());
    }
}