@Deprecated
    @Override public void toXML(Object obj, OutputStream out) {
        super.toXML(obj, out);
    }
@Issue("JENKINS-71139")
    @Test
    public void nullsWithoutEncodingDeclaration() throws Exception {
        Bar b = new Bar();
        b.s = "x\u0000y";
        try {
            new XStream2().toXML(b, new StringWriter());
            fail("expected to fail fast; not supported to read either");
        } catch (RuntimeException x) {
            assertThat("cause is com.thoughtworks.xstream.io.StreamException: Invalid character 0x0 in XML stream", Functions.printThrowable(x), containsString("0x0"));
        }
    }