@Test
  public void testCommandQueueInitSpeedMatchesSessionSpeed() {
    assertEquals(defaultSpeed, CommandQueue.getSpeed());
    FrameGroupCommandQueueSet session1 =
        FrameGroupCommandQueueSet.makeQueueSet(
            firstSessionId,
            RemoteControlConfiguration.DEFAULT_PORT,
            new RemoteControlConfiguration());
    session1.setSpeed(newSpeed);

    CommandQueue queue1 = session1.getCommandQueue(firstQueueId);
    assertEquals(newSpeed, queue1.getQueueDelay());
    assertEquals(defaultSpeed, CommandQueue.getSpeed());

    FrameGroupCommandQueueSet.clearQueueSet(firstSessionId);
  }
  @Test
  public void testSetSessionSpeedNotGlobalSpeed() {
    assertEquals(defaultSpeed, CommandQueue.getSpeed());
    FrameGroupCommandQueueSet session1 =
        FrameGroupCommandQueueSet.makeQueueSet(
            firstSessionId,
            RemoteControlConfiguration.DEFAULT_PORT,
            new RemoteControlConfiguration());
    session1.setSpeed(newSpeed);
    int sessionSpeedOnInit = session1.getSpeed();
    assertEquals(newSpeed, sessionSpeedOnInit);

    FrameGroupCommandQueueSet session2 =
        FrameGroupCommandQueueSet.makeQueueSet(
            secondSessionId,
            RemoteControlConfiguration.DEFAULT_PORT,
            new RemoteControlConfiguration());
    int session2SpeedOnInit = session2.getSpeed();
    assertEquals(defaultSpeed, session2SpeedOnInit);

    FrameGroupCommandQueueSet.clearQueueSet(firstSessionId);
    FrameGroupCommandQueueSet.clearQueueSet(secondSessionId);
  }