@Deprecated
    @Override public void toXML(Object obj, OutputStream out) {
        super.toXML(obj, out);
    }
@Issue("JENKINS-71182")
    @Test
    public void writeEmoji() throws Exception {
        Bar b = new Bar();
        String text = "Fox 🦊";
        b.s = text;
        StringWriter w = new StringWriter();
        XStream2 xs = new XStream2();
        xs.toXML(b, w);
        String xml = w.toString();
        assertThat(xml, is("<hudson.util.XStream2Test_-Bar>\n  <s>Fox 🦊</s>\n</hudson.util.XStream2Test_-Bar>"));
        b = (Bar) xs.fromXML(xml);
        assertEquals(text, b.s);
    }