### Question:
MyDocumentModel { public Line getLine(int number) { return lines.stream().filter(line -> line.getNumber() == number).findFirst().orElse(null); } MyDocumentModel(String text, AnalysisResult analysisResult);  MyDocumentModel(String text); Line getLine(int number); String getTokenBeforePosition(Position position); String getFullTokenAtPosition(Position position);  }### Answer:
@Test void testGetFirstRoute() { assertEquals(retrieveFirstTextLine(), model.getLine(0).getText()); }
@Test void testGetSecondRoute() { assertEquals(retrieveSecondTextLine(), model.getLine(1).getText()); }
@Test void testGetNoLines() { assertNull(model.getLine(-1)); }