### Question:
GroupHibernateDao extends GenericDao<Group> implements GroupDao { @Override public void delete(Group group) { session().update(group); group.getUsers().clear(); saveOrUpdate(group); super.delete(group); } GroupHibernateDao(SessionFactory sessionFactory); @Override @SuppressWarnings("unchecked") List<Group> getAll(); @SuppressWarnings("unchecked") @Override List<Group> getByNameContains(String name); @Override List<Group> getByName(String name); @Override void delete(Group group); @SuppressWarnings("unchecked") @Override List<PoulpeBranch> getModeratingBranches(Group group);  }### Answer:
@Test public void testDeleteGroup(){ Group group = TestFixtures.group(); saveAndEvict(group); dao.delete(group); Group actual = dao.get(group.getId()); assertNull(actual); }