JcrPropertyIterator implements PropertyIterator { @Override public void remove() { throw new UnsupportedOperationException(); } JcrPropertyIterator( Collection<? extends Property> properties ); @Override long getPosition(); @Override long getSize(); @Override boolean hasNext(); @Override Object next(); @Override Property nextProperty(); @Override void remove(); @Override void skip( long count );  }
@Test( expected = UnsupportedOperationException.class ) public void shouldNotAllowPropertyIteratorRemove() throws Exception { new JcrPropertyIterator(properties).remove(); }