### Question:
AbstractIterator2 implements Iterator<E> { @Override public final void remove() { throw new UnsupportedOperationException("Modifications are not allowed"); }  @Override boolean hasNext(); @Override E next(); @Override final void remove();  }### Answer:
@Test(expected = UnsupportedOperationException.class) public void modificationsAreNotAllowed() { iterator.remove(); }