JcrEmptyNodeIterator implements NodeIterator { @Override public boolean hasNext() { return false; } 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();  }
@Test public void shouldNotHaveNext() { assertThat(iter.hasNext(), is(false)); }