void () { RangeMarker marker = createMarker("01[]23456789"); deleteString(marker.getDocument(), 1, 3); assertFalse(marker.isValid()); insertString(marker.getDocument(), 2, "xxx"); assertEquals(2, marker.getStartOffset()); assertEquals(2, marker.getEndOffset()); assertFalse(marker.isValid()); }