### Question:
InMemoryCursor extends Cursor { @Override public boolean isEmpty() { return remainingDocuments.isEmpty(); } InMemoryCursor(long cursorId, List<Document> remainingDocuments); @Override boolean isEmpty(); @Override List<Document> takeDocuments(int numberToReturn);  }### Answer:
@Test void testIsEmpty() { InMemoryCursor cursor = new InMemoryCursor(1L, Collections.singletonList(new Document())); assertThat(cursor.isEmpty()).isFalse(); }