public void testJson() {
PurchaseOrder purchaseOrder = new PurchaseOrder();
purchaseOrder.setName("foo");
XStreamDataFormat xStreamDataFormat = new XStreamDataFormat();
xStreamDataFormat.setXstreamDriver(new JsonHierarchicalStreamDriver());
XStream xStream = xStreamDataFormat.createXStream(new DefaultClassResolver());
String marshalledOrder = xStream.toXML(purchaseOrder);
assertEquals("{", marshalledOrder.substring(0, 1));