@Override
    public void clear() {
        Object value;
        do {
            value = poll();
        } while (value != null);
    }
@Test
    public void testClear() {
        queue.offer(1);
        queue.offer(2);
        queue.offer(3);

        queue.clear();

        assertEquals(0, queue.size());
    }