### Question:
Xml extends XmlReader { public void writeString(String attribute, String content) { if (content == null) { write(attribute, NULL); } else { write(attribute, content); } } Xml(Media media);  Xml(String name);   Xml(Document document, Element root); void save(Media media); Xml createChild(String child); void add(XmlReader node); void setText(String text); void writeBoolean(String attribute, boolean content); void writeByte(String attribute, byte content); void writeShort(String attribute, short content); void writeInteger(String attribute, int content); void writeLong(String attribute, long content); void writeFloat(String attribute, float content); void writeDouble(String attribute, double content); void writeString(String attribute, String content); void removeAttribute(String attribute); void removeChild(String child); void removeChild(Xml child); void removeChildren(String children); Xml getChild(String name); Collection<Xml> getChildren(String name); Collection<Xml> getChildren();  }### Answer:
@Test void testNodeWriteError() { final Xml node = new Xml("test"); assertThrows(() -> node.writeString("%éàç-èyrd", "error"), Xml.ERROR_WRITE_ATTRIBUTE + "%éàç-èyrd" + Xml.ERROR_WRITE_CONTENT + "error"); }