@Override
    public E remove() {
        final E e = poll();
        if (e == null) {
            throw new NoSuchElementException("Queue is empty");
        }
        return e;
    }
@Test(expected = NoSuchElementException.class)
    public void testRemove_whenEmpty() {
        queue.remove();
    }