### Question:
ClientIterator implements Iterator<T> { public T next() { return load().next(); } ClientIterator(RemoteIterator<T> ri, int batchSize); boolean hasNext(); T next(); void remove();  }### Answer:
@Test public void testNext() { for (String v : source) { assertEquals(v, ci.next()); } try { ci.next(); fail("Failed to get NoSuchElementException"); } catch (NoSuchElementException e) { } catch (Exception e) { fail("Failed to get NoSuchElementException"); } }