@Override
    public int remainingCapacity() {
        return capacity() - size();
    }
@Test
    public void testRemainingCapacity() {
        assertEquals(CAPACITY, queue.remainingCapacity());

        queue.offer(1);

        assertEquals(CAPACITY - 1, queue.remainingCapacity());
    }