void () { final XmlFile xmlFile = createXmlFile("<root>xxx</root>"); final XmlTag tag = xmlFile.getDocument().getRootTag(); final XmlText text = tag.getValue().getTextElements()[0]; final XmlTextManipulator manipulator = new XmlTextManipulator(); assertEquals(TextRange.from(0, 3), manipulator.getRangeInElement(text)); manipulator.handleContentChange(text, TextRange.from(1, 1), "AA"); assertEquals("<root>xAAx</root>", tag.getText()); }