void () { RangeMarkerEx marker1 = createMarker("01234567890", 5, 5); DocumentEx document = (DocumentEx)marker1.getDocument(); RangeMarker marker2 = document.createRangeMarker(5, 7); moveText(document, 4, 7, 1); assertEquals("04561237890", document.getText()); assertValidMarker(marker1, 2, 2); assertValidMarker(marker2, 2, 4); }