}
HornetQBytesMessage copy = new HornetQBytesMessage(foreignBytesMessage, session);
foreignBytesMessage.reset();
copy.reset();
MessageHeaderTestBase.ensureEquivalent(foreignBytesMessage, copy);
}
public void testCopyOnForeignMapMessage() throws JMSException