SessionServices { public void monitorSession(String httpid) { monitorSessionManager.setMonitored(httpid); }  Collection<SessionInfo> getSessionInfos(); void monitorSession(String httpid); void unmonitorSession(String httpid);  }
@Test public void testMonitorSession() { System.out.println("monitorSession"); String httpid = "ID"; doNothing().when(monitorSessionManager).setMonitored(eq(httpid)); instance.monitorSession(httpid); verify(monitorSessionManager).setMonitored(eq(httpid)); }