ensureEquivalent(foreignBytesMessage, copy);
}
public void testCopyOnJBossMapMessage() throws JMSException
{
JBossMapMessage jbossMapMessage = (JBossMapMessage)(((MessageProxy)queueProducerSession.
createMapMessage()).getMessage());
jbossMapMessage.setInt("int", 1);
jbossMapMessage.setString("string", "test");
JBossMapMessage copy = new JBossMapMessage((JBossMapMessage)jbossMapMessage);
ensureEquivalent(jbossMapMessage, copy);
}