AccessControlPolicyIteratorImpl implements AccessControlPolicyIterator { @Override public long getPosition() { return index; } AccessControlPolicyIteratorImpl(AccessControlPolicy... policy); @Override AccessControlPolicy nextAccessControlPolicy(); @Override void skip(long amount); @Override long getSize(); @Override long getPosition(); @Override boolean hasNext(); @Override Object next(); @Override void remove(); final static AccessControlPolicyIteratorImpl EMPTY; }
@Test public void testGetPosition() { assertEquals(0, it.getPosition()); it.skip(1); assertEquals(1, it.getPosition()); }