### Question:
CircularStack implements Iterable<E> { public void pop() { this.elements.remove(this.elements.size() - 1); } CircularStack(final int limit); void shallowCopyTo(final CircularStack<E> destination); void push(final E element); E peek(); void pop(); int size(); @Override Iterator<E> iterator();  }### Answer:
@Test public void popFromEmptyStackThrowsException() { final CircularStack<Integer> intStack = this.createStack(3); Assertions.assertThrows(IndexOutOfBoundsException.class, () -> intStack.pop()); }