### Question:
GroupHibernateDao extends GenericDao<Group> implements GroupDao { @Override @SuppressWarnings("unchecked") public List<Group> getAll() { return session().getNamedQuery(FIND_ALL_GROUPS).list(); } 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 testGetAll() { Group group0 = TestFixtures.group(); saveAndEvict(group0); Group group1 = TestFixtures.group(); saveAndEvict(group1); List<Group> actual = dao.getAll(); assertEquals(actual.size(), 2); assertReflectionEquals(actual.get(0), group0); assertReflectionEquals(actual.get(1), group1); }