p.setLastName("testLD");
String email = "test@cipres.treebase.org";
p.setEmailAddressString(email);
PersonHome fixture = getPersonHome();
fixture.store(p);
// force commit immediately, important:
setComplete();
endTransaction();
logger.info("person created: " + p.getLastName() + "id = " + p.getId());
// 2. verify
String sqlStr = "select count(*) from Person where person_id=" + p.getId();
int count = jdbcTemplate.queryForInt(sqlStr);
assertTrue(count == 1);
// 3. delete
// fixture.delete(testRole);
fixture.deletePersist(p);
setComplete();
// 4. verify delete:
int countVerify = jdbcTemplate.queryForInt(sqlStr);
assertTrue(countVerify == 0);