### Question:
CursorList implements Iterable<T>, Closeable { @Override public void close() { if (cursor != null) { cursor.close(); } closed = true; } CursorList(Cursor cursor, Class<T> type); int size(); T get(int pos); List<T> asList(); @Override Iterator<T> iterator(); Cursor getCursor(); @Override void close();  }### Answer:
@Test(expected = IllegalStateException.class) public void close() { list.close(); list.get(0); }