@Deprecated
    @Override public void toXML(Object obj, OutputStream out) {
        super.toXML(obj, out);
    }
@Test
    public void annotations() {
        assertEquals("not registered, so sorry", "<hudson.util.XStream2Test_-C1/>", Jenkins.XSTREAM2.toXML(new C1()));
        assertEquals("manually registered", "<C-2/>", Jenkins.XSTREAM2.toXML(new C2()));
        assertEquals("manually processed", "<C-3/>", Jenkins.XSTREAM2.toXML(new C3()));
        assertThrows(CannotResolveClassException.class, () -> Jenkins.XSTREAM2.fromXML("<C-4/>"));

        Jenkins.XSTREAM2.processAnnotations(C5.class);
        assertThat("can deserialize from annotations so long as the processing happened at some point", Jenkins.XSTREAM2.fromXML("<C-5/>"), instanceOf(C5.class));
    }