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