void () { XmlTag tag = createTag("<a>foo</a>"); XmlText[] elements = tag.getValue().getTextElements(); assertEquals(1, elements.length); elements[0].setValue(""); assertEquals("<a></a>", tag.getText()); }