@Test
public void testDeleteBySample() throws Exception {

    Person sample = new Person();
    sample.setName("test");
    assertEquals(4, dao.deleteBySample(sample));
    assertEquals(0, dao.queryBySample(sample).size());
}