AdapterXStreamMarshallerFactory extends AdapterMarshallerFactory { public XStream createXStream() { return createXStream(MarshallingOutput.XML); } private  AdapterXStreamMarshallerFactory(); static synchronized AdapterXStreamMarshallerFactory getInstance(); @Override AdaptrisMarshaller createMarshaller(); @Override AdaptrisMarshaller createMarshaller(MarshallingOutput outputType); XStream createXStream(); XStream createXStream(MarshallingOutput outputType); static final transient boolean XSTREAM_DBG; static final transient boolean XSTREAM_JDK_STAX_ONLY; }
@Test public void testCreateXStream() throws Exception { try { AdapterXStreamMarshallerFactory factory = AdapterXStreamMarshallerFactory.getInstance(); assertNotNull(factory.createXStreamInstance(MarshallingOutput.XML)); assertNotNull(factory.createXStreamInstance(MarshallingOutput.JSON)); } finally { AdapterXStreamMarshallerFactory.reset(); } }