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