### Question:
ForumStatisticsService { public int getPostsOnForumCount() { return statisticsDao.getPostsOnForumCount(); } ForumStatisticsService(ForumStatisticsDao statisticsDao); int getPostsOnForumCount(); int getUsersCount();  }### Answer:
@Test public void testGetPostsOnForumCount() throws NotFoundException { int expectedCount = 10; when(statisticsDao.getPostsOnForumCount()).thenReturn(expectedCount); assertEquals(statisticsService.getPostsOnForumCount(), expectedCount); verify(statisticsDao).getPostsOnForumCount(); }