Node node = new DataObject2Node().transform(dataObject, context);
Assert.assertNotNull(node);
Element element = (Element) node;
Assert.assertEquals(ORDER_QNAME.getNamespaceURI(), element.getNamespaceURI());
Assert.assertEquals(ORDER_QNAME.getLocalPart(), element.getLocalName());
DataObject po = new Node2DataObject(new DefaultExtensionPointRegistry()).transform(node, reversedContext);
Assert.assertTrue(po instanceof PurchaseOrderType);
PurchaseOrderType orderType = (PurchaseOrderType)po;
Assert.assertEquals("San Jose", orderType.getBillTo().getCity());
}