### Question:
ForumStatisticsProvider { public int getPostsOnForumCount() { return statisticsService.getPostsOnForumCount(); } ForumStatisticsProvider(SessionRegistry sessionRegistry,
                                   SessionStatisticListener sessionStatisticListener,
                                   ForumStatisticsService statisticsService); int getPostsOnForumCount(); int getUsersCount(); List<Object> getOnlineRegisteredUsers(); long getOnlineUsersCount(); long getOnlineRegisteredUsersCount(); long getOnlineAnonymousUsersCount();  }### Answer:
@Test public void testGetPostsOnForumCount() throws NotFoundException { int expectedCount = 10; when(statisticsService.getPostsOnForumCount()).thenReturn(expectedCount); assertEquals(forumStaticsProvider.getPostsOnForumCount(), expectedCount); verify(statisticsService).getPostsOnForumCount(); }