@Override
    public E element() {
        final E e = peek();
        if (e == null) {
            throw new NoSuchElementException("Queue is empty");
        }
        return e;
    }
@Test
    public void testElement() {
        queue.offer(23);

        assertEquals(23, (int) queue.element());
        assertEquals(1, queue.size());
    }