### Question:
ClientIterator implements Iterator<T> { public boolean hasNext() { return load().hasNext(); } ClientIterator(RemoteIterator<T> ri, int batchSize); boolean hasNext(); T next(); void remove();  }### Answer:
@Test public void testHasNext() { assertTrue(ci.hasNext()); assertTrue(ci.hasNext()); for (String v : source) { assertTrue(ci.hasNext()); assertEquals(v, ci.next()); } assertFalse(ci.hasNext()); assertFalse(ci.hasNext()); }