### Question:
LazyCursorList extends AbstractList<T> implements RandomAccess, Closeable { @Override public int size() { return cursor.getCount(); } LazyCursorList(final Cursor cursor, final Function<? super Cursor, T> function); @Override T get(int i); @Override int size(); @Override void close();  }### Answer:
@Test public void shouldContainProperSize() throws Exception { final MatrixCursor cursor = new MatrixCursor(new String[] { "name" }); for (int i = 0; i < 10; i++) { cursor.addRow(new Object[] { "Name" + i }); } final LazyCursorList<String> list = new LazyCursorList<String>(cursor, new Function<Cursor, String>() { @Override public String apply(Cursor cursor) { return null; } }); assertThat(list.size()).isEqualTo(cursor.getCount()); }