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