void () { RangeMarker marker = createMarker("0123456789", 2, 5); insertString(marker.getDocument(), 0, "xxx"); assertEquals(5, marker.getStartOffset()); assertEquals(8, marker.getEndOffset()); assertTrue(marker.isValid()); }