### Question:
JcrEmptyNodeIterator implements NodeIterator { @Override public void remove() { throw new UnsupportedOperationException(); } private  JcrEmptyNodeIterator(); @Override Node nextNode(); @Override long getPosition(); @Override long getSize(); @Override void skip( long skipNum ); @Override boolean hasNext(); @Override Object next(); @Override void remove();  }### Answer:
@Test( expected = UnsupportedOperationException.class ) public void shouldNotAllowRemove() { iter.remove(); }