### Question:
AccessControlPolicyIteratorImpl implements AccessControlPolicyIterator { @Override public boolean hasNext() { return index < list.size(); } 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; }### Answer:
@Test public void testHasNext() { assertTrue(it.hasNext()); it.skip(1); assertTrue(it.hasNext()); it.skip(1); assertFalse(it.hasNext()); }