public void testHessianSerialization() throws Exception {
// id must be a serializable object; source doesn't have to be
ObjectContext source = new MockObjectContext();
GraphDiff diff = new NodeCreateOperation("id-string");
SyncMessage message = new SyncMessage(source, DataChannel.FLUSH_NOCASCADE_SYNC, diff);
Object d = HessianUtil.cloneViaClientServerSerialization(message, new EntityResolver());
assertNotNull(d);
assertTrue(d instanceof SyncMessage);
SyncMessage ds = (SyncMessage) d;
assertNull(ds.getSource());
assertEquals(message.getType(), ds.getType());
assertNotNull(ds.getSenderChanges());
}