@Test
public void testSetTimeout() {

    rdq.clear();
    Message msg = new Message("x001", "Hello World");
    msg.setPriority(3);
    msg.setTimeout(20_000);
    rdq.push(Arrays.asList(msg));
    List<Message> popped = rdq.pop(1, 1, TimeUnit.SECONDS);
    assertTrue(popped.isEmpty());
    boolean updated = rdq.setTimeout(msg.getId(), 1);
    assertTrue(updated);
    popped = rdq.pop(1, 1, TimeUnit.SECONDS);
    assertEquals(1, popped.size());
    assertEquals(1, popped.get(0).getTimeout());
    updated = rdq.setTimeout(msg.getId(), 1);
    assertTrue(!updated);
}