@Test public void testElement() throws InterruptedException { final IQueue q = client.getQueue(randomString()); q.offer(1); assertEquals(1, q.element()); }
@Test(expected = NoSuchElementException.class) public void testEmptyElement() throws InterruptedException { final IQueue q = client.getQueue(randomString()); q.element(); }