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