### Question:
EmptyCursor extends Cursor { @Override public List<Document> takeDocuments(int numberToReturn) { throw new NoSuchElementException(); } private  EmptyCursor(); static EmptyCursor get(); @Override boolean isEmpty(); @Override List<Document> takeDocuments(int numberToReturn); @Override String toString();  }### Answer:
@Test void testTakeDocuments() { assertThatExceptionOfType(NoSuchElementException.class) .isThrownBy(() -> EmptyCursor.get().takeDocuments(1)); }