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