### Question:
ForumStatisticsService { public int getUsersCount() { return statisticsDao.getUsersCount(); } ForumStatisticsService(ForumStatisticsDao statisticsDao); int getPostsOnForumCount(); int getUsersCount();  }### Answer:
@Test public void testGetUsersCount() throws Exception { int userCount = 5; when(statisticsDao.getUsersCount()).thenReturn(userCount); assertEquals(statisticsService.getUsersCount(), userCount); verify(statisticsDao).getUsersCount(); }