### Question:
ArrayRingBuffer extends AbstractBoundedQueue<T> implements Iterable<T> { @Override public void enqueue(T x) { if (isFull()) { throw new RuntimeException("Ring buffer overflow"); } else { rb[last] = x; last += 1; if (last >= this.capacity) { last = 0; } } fillCount += 1; } ArrayRingBuffer(int capacity); @Override Iterator<T> iterator(); @Override void enqueue(T x); @Override T dequeue(); @Override T peek();  }### Answer:
@Test public void testIsFull() { ArrayRingBuffer<Integer> arb = new ArrayRingBuffer<>(10); for (int i = 0; i < arb.capacity(); i += 1) { arb.enqueue(i); } assertTrue(arb.isFull()); }