EmptyEventListenerIterator implements EventListenerIterator { @Override public Object next() { throw new NoSuchElementException(); }  @Override EventListener nextEventListener(); @Override void skip(long skipNum); @Override long getSize(); @Override long getPosition(); @Override boolean hasNext(); @Override Object next();  }
@Test(expected = NoSuchElementException.class) public void testNext() { new EmptyEventListenerIterator().next(); }