EmptyIterator implements Iterator { @Override public boolean hasNext() { return false; }  @Override boolean hasNext(); @Override Object next(); @Override void remove(); static final EmptyIterator INSTANCE; }
@Test public void testHasNext() { assertThat(EmptyIterator.INSTANCE.hasNext(), is(false)); }