void () { final String text = """ 123 fold line 1 fold line 2 456"""; init(6, text); addCollapsedFoldRegion(2, text.indexOf("4"), "..."); getEditor().getSelectionModel().selectLineAtCaret(); assertEquals(text, getEditor().getSelectionModel().getSelectedText()); }