### Question:
SectionHibernateDao extends GenericDao<PoulpeSection> implements SectionDao { @Override @SuppressWarnings("unchecked") public List<PoulpeSection> getAll() { return session().createQuery("from PoulpeSection").list(); } SectionHibernateDao(SessionFactory sessionFactory); @Override @SuppressWarnings("unchecked") List<PoulpeSection> getAll(); @Override boolean deleteRecursively(PoulpeSection section); @Override boolean deleteAndMoveBranchesTo(PoulpeSection victimSection, PoulpeSection recipientSection);  }### Answer:
@Test public void getAllTest() { givenTwoSections(); List<PoulpeSection> sections = dao.getAll(); assertEquals(sections.size(), 2); }
@Test public void GetAllWhenTableIsEmptyTest() { List<PoulpeSection> sections = dao.getAll(); assertTrue(sections.isEmpty()); }