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