}
/* @Bug(6252) */
public void testSubTextSubText() {
MarkupText text = new MarkupText("abcdefgh");
SubText sub = text.subText(2, 7);
assertEquals("cdefg", sub.getText());
sub = sub.subText(1, 4);
assertEquals("def", sub.getText());
// test negative end
sub = text.subText(2, -3);
assertEquals("cdef", sub.getText());
sub = sub.subText(1, -2);
assertEquals("de", sub.getText());
}