SessionManager { public List<Estimate> getResults(final Long sessionId) { return sessionEstimates.get(sessionId); }  boolean isSessionActive(final Long sessionId); Long createSession(); void registerEstimate(final Long sessionID, final Estimate estimate); List<Estimate> getResults(final Long sessionId); List<String> getSessionUsers(final Long sessionId); ListMultimap<Long, String> getSessions(); synchronized void clearSessions(); void resetSession(final Long sessionId); void registerUser(final String userName, final Long sessionId); void removeUser(String userName, Long sessionId); static final Long SESSION_SEQ_START_VALUE; }
@Test public void testGetResults() throws Exception { final Long sessionId = sessionManager.createSession(); final Estimate estimate = new Estimate("Rich A", "5"); sessionManager.registerEstimate(sessionId, estimate); final List<Estimate> results = sessionManager.getResults(sessionId); assertEquals(Lists.newArrayList(estimate), results); }