SessionServices { public Collection<SessionInfo> getSessionInfos() { return httpSessionManager.getSessionInfos(); }  Collection<SessionInfo> getSessionInfos(); void monitorSession(String httpid); void unmonitorSession(String httpid);  }
@Test public void testGetSessionInfos() { System.out.println("getSessionInfos"); Collection<SessionInfo> sessionInfos = new ArrayList<>(); when(httpSessionManager.getSessionInfos()).thenReturn(sessionInfos); Collection<SessionInfo> result = instance.getSessionInfos(); assertThat(result).isEqualTo(sessionInfos); verify(httpSessionManager).getSessionInfos(); }