@Test(expected = UnsupportedOperationException.class) public void testRemove() { LazyIterator<Integer> lazyIterator = newLazyIterator(1, 2, 3, 4); lazyIterator.remove(); }
@Override public void remove() { throw new UnsupportedOperationException("Iterator.remove() is not supported"); }
LazyIterator implements Iterator<T> { @Override public void remove() { throw new UnsupportedOperationException("Iterator.remove() is not supported"); } }
LazyIterator implements Iterator<T> { @Override public void remove() { throw new UnsupportedOperationException("Iterator.remove() is not supported"); }  }
LazyIterator implements Iterator<T> { @Override public void remove() { throw new UnsupportedOperationException("Iterator.remove() is not supported"); }  @Override void remove(); @Override final boolean hasNext(); @Override final T next(); }
LazyIterator implements Iterator<T> { @Override public void remove() { throw new UnsupportedOperationException("Iterator.remove() is not supported"); }  @Override void remove(); @Override final boolean hasNext(); @Override final T next();  }