assertTrue(context.getEqualityHelper().equal((DataObject)po, (DataObject)copy));
assertEquals("Comment", ((PurchaseOrderType)copy).getComment());
}
public final void testCopyNonRoot() {
USAddress address = SdoFactory.INSTANCE.createUSAddress();
address.setCity("San Jose");
Object copy = binding.copy(address, null, null);
assertTrue(copy instanceof USAddress);
assertTrue(address != copy);
assertTrue(context.getEqualityHelper().equal((DataObject)address, (DataObject)copy));
assertEquals("San Jose", ((USAddress)copy).getCity());