    @Test
    public void getItem() {

        CircularBuffer<Integer> queue = new CircularBuffer<>(3);
        queue.enqueue(0);
        assertEquals((Integer) 0, queue.getItem(0));
        queue.enqueue(1);
        assertEquals((Integer) 1, queue.getItem(0));
        assertEquals((Integer) 0, queue.getItem(1));
        queue.enqueue(2);
        assertEquals((Integer) 2, queue.getItem(0));
        assertEquals((Integer) 1, queue.getItem(1));
        assertEquals((Integer) 0, queue.getItem(2));
        queue.enqueue(3);
        assertEquals((Integer) 3, queue.getItem(0));
        assertEquals((Integer) 2, queue.getItem(1));
        assertEquals((Integer) 1, queue.getItem(2));
    }