@Test
public void testExpiredRequestsRemoval() throws Exception {

    queue.onWait("user", "firefox", version("33"), "reqId", 0);
    await().atMost(4, SECONDS).until(() -> state("user-firefox-33"), notNullValue());
    assertThat(state("user-firefox-33").size(), equalTo(1));
    sleep(1000);
    helper.invokeTimersFor(QueueWaitAvailableBrowsersChecker.class);
    await().atMost(2, SECONDS).until(() -> state("user-firefox-33").size(), equalTo(0));
}