void () { final XmlFile xmlFile = createXmlFile("<root bbb=''/>"); XmlTag tag = xmlFile.getDocument().getRootTag(); final XmlAttributeValue value = tag.getAttribute("bbb").getValueElement(); final XmlAttributeValueManipulator manipulator = new XmlAttributeValueManipulator(); manipulator.handleContentChange(value, TextRange.from(1, 0), "\"'"); assertEquals("<root bbb='\"&apos;'/>", tag.getText()); }