public void deleteThenVerifyAll() {
em = emf.createEntityManager();
begin();
for (int i = 0; i < getNumberOfEmployees(); ++i) {
Employee e = em.find(Employee.class, i);
verifyEmployee(e, 1);
em.remove(e);
}
commit();
begin();
for (int i = 0; i < getNumberOfEmployees(); ++i) {
Employee e = em.find(Employee.class, i);
if (e != null) {
error("Entity exists after being removed: " + i);
}
}
commit();