### Question:
CursorList implements Iterable<T>, Closeable { public int size() { return cursor == null ? 0 : cursor.getCount(); } 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 public void size() { assertEquals(list.size(), 3); }