void () { // There was a problem that removing text from the last document line that was soft-wrapped removed soft wraps as well. String text = "This a long string that is expected to be wrapped in more than one visual line<caret>"; init(20, text); List<SoftWrap> softWrapsBeforeModification = new ArrayList<>(getSoftWrapModel().getRegisteredSoftWraps()); assertFalse(softWrapsBeforeModification.isEmpty()); backspace(); assertEquals(softWrapsBeforeModification, getSoftWrapModel().getRegisteredSoftWraps()); }