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