assertEquals("deserialized object is not equal", xid, value);
}
public void testXidEquals() throws Exception {
XidStub xidStub = new XidStub(new byte[]{1, 2, 3, 4, 5});
ActiveMQXid xid1 = new ActiveMQXid(xidStub);
ActiveMQXid xid2 = new ActiveMQXid(xidStub);
assertEquals("object hashes are not equal", xid1.hashCode(), xid2.hashCode());
assertEquals("objects are not equal", xid1, xid2);