assertTrue(context.getEqualityHelper().equal((DataObject)address, (DataObject)copy));
assertEquals("San Jose", ((USAddress)copy).getCity());
}
public final void testCopyXMLDocument() {
PurchaseOrderType po = SdoFactory.INSTANCE.createPurchaseOrderType();
po.setComment("Comment");
XMLDocument doc =
context.getXMLHelper().createDocument((DataObject)po,
ORDER_QNAME.getNamespaceURI(),
ORDER_QNAME.getLocalPart());
Object copy = binding.copy(doc, null, null, null, null);