### Question:
TransactionalSectionService extends AbstractTransactionalEntityService<Section, SectionDao> implements SectionService { @Override public List<Section> getAll() { return this.getDao().getAll(); } TransactionalSectionService(SectionDao dao, BranchService branchService, UserService userService,
                                       TopicDao topicDao, PostDao postDao); @Override List<Section> getAll(); @Override List<Section> getAllAvailableSections(long currentTopicId); void prepareSectionsForView(List<Section> sections); @Override Section deleteAllTopicsInSection(long sectionId); @Override void deleteAllTopicsInForum(); @Override void ifSectionIsVisible(Section section); @Override List<Post> getLastPostsForSection(Section section, int postsCount);  }### Answer:
@Test public void testGetAll() { List<Section> expectedSectionList = new ArrayList<>(); expectedSectionList.add(new Section(SECTION_NAME)); when(sectionDao.getAll()).thenReturn(expectedSectionList); List<Section> actualSectionList = sectionService.getAll(); assertEquals(actualSectionList, expectedSectionList); verify(sectionDao).getAll(); }