source: class GroupServerTest {
  
  	static final String USER_CHANNEL;
  	 MockDataTracker tracker;
  	 GroupServer server;
  	 NullLobby lobby;
  
  	@Test
  	public void testAcceptHITLimit() {
  
target: 		String hitId = "testHITId";				
  		String workerId = "testWorkerId";		
  		String assignmentId = "testAssignmentId";
  		
  		Session s = new Session();
  		s.setHitId(hitId);
  		s.setWorkerId(workerId);
  		s.setAssignmentId(assignmentId);		
  		s.setInactivePercent(0.0); // Identifies completed session
  		
  		assertEquals(SessionStatus.COMPLETED, SessionRecord.status(s));
  		
  		tracker.saveSession(s);
  		
  		String hitId2 = "testHITId2";
  		String assignmentId2 = "assignmentId2";
  		MockServerSession conn = new MockServerSession();
  		
  		// Attempt to take new session
  		server.sessionAccept(conn, hitId2, assignmentId2, workerId);
  		
  		assertEquals(conn.lastChannel, USER_CHANNEL);
  		assertEquals(Codec.status_toomanysessions, ((Map<String, Object>) conn.lastData).get("status"));
  	}
  
  }