### Question:
EmptyIterator implements Iterator<T>, Serializable { public boolean hasNext() { return false; }  boolean hasNext(); T next(); void remove();  }### Answer:
@Test public void hasNext() { EmptyIterator<Object> i = new EmptyIterator<>(); Assert.assertFalse(i.hasNext()); }