JcrChildNodeIterator implements NodeIterator { @Override public void remove() { throw new UnsupportedOperationException(); } JcrChildNodeIterator( NodeResolver resolver,
                          Iterator<ChildReference> iterator );   JcrChildNodeIterator( NodeResolver resolver,
                          ChildReferences childReferences ); @Override long getPosition(); @Override long getSize(); @Override boolean hasNext(); @Override Object next(); @Override Node nextNode(); @Override void remove(); @Override void skip( long count );  }
@Test( expected = UnsupportedOperationException.class ) public void shouldNotAllowRemove() { iter.remove(); }