### Question:
SingleIterator implements SizedIterator<OBJECT> { @Pure @Override public boolean hasNext() { return this.object != null; } SingleIterator(OBJECT obj); @Pure @Override boolean hasNext(); @Override OBJECT next(); @Pure @Override int index(); @Pure @Override int totalSize(); @Pure @Override int rest();  }### Answer:
@Test public void hasNext() { assertTrue(this.iterator.hasNext()); this.iterator.next(); assertFalse(this.iterator.hasNext()); }