### Question:
ItemIterator { public boolean hasNext() throws SQLException { if (iditr != null) { return iditr.hasNext(); } else if (itemRows != null) { return itemRows.hasNext(); } return false; } ItemIterator(Context context, TableRowIterator rows);  ItemIterator(Context context, List<Integer> iids); boolean hasNext(); Item next(); int nextID(); void close();  }### Answer:
@Test public void testHasNext() throws Exception { assertFalse("testHasNext iitnone 0", iitnone.hasNext()); for(int i = 0; i < numitems; i++) { assertTrue("testHasNext iitr "+i, iitr.hasNext()); iitr.next(); } for(int i = 0; i < numitems; i++) { assertTrue("testHasNext iitid "+i, iitid.hasNext()); iitid.next(); } }