RegularDegreeEdgeIterator extends ReadOnlyIntIterator implements WithEdgeMetadataIntIterator, ReusableNodeIntIterator { @Override public Integer next() { return nextInt(); } RegularDegreeEdgeIterator(AbstractRegularDegreeEdgePool regularDegreeEdgePool); @Override RegularDegreeEdgeIterator resetForNode(int node); @Override int nextInt(); @Override long currentMetadata(); @Override int skip(int i); @Override boolean hasNext(); @Override Integer next();  }
@Test public void testNext() { NullStatsReceiver nullStatsReceiver = new NullStatsReceiver(); RegularDegreeEdgePool regularDegreeEdgePool = new RegularDegreeEdgePool(61, 3311, nullStatsReceiver); RegularDegreeEdgeIterator regularDegreeEdgeIterator = new RegularDegreeEdgeIterator(regularDegreeEdgePool); regularDegreeEdgeIterator.next(); assertFalse(regularDegreeEdgeIterator.hasNext()); }