### Question:
CursorIterator implements Iterator<T> { @Override public boolean hasNext() { return (pos+1) < count; } CursorIterator(Cursor cursor, Class<T> type); @Override boolean hasNext(); @Override T next(); @Override void remove();  }### Answer:
@Test public void hasNext() { iterator.next(); iterator.next(); assertTrue(iterator.hasNext()); iterator.next(); assertFalse(iterator.hasNext()); }