JcrEmptyNodeIterator implements NodeIterator { @Override public long getPosition() { return 0; } 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 shouldHavePositionOfZero() { assertThat(iter.getPosition(), is(0L)); }