JBossObjectMessage copy = (JBossObjectMessage)JBossMessage.copy(jbossMessage);
JBossObjectMessage copy = (JBossObjectMessage)JBossMessage.copy((JBossMessage)jbossMessage);
   public void testCopyOnJBossObjectMessage() throws JMSException   {      Message jbossMessage = queueProducerSession.createObjectMessage();      JBossObjectMessage copy = (JBossObjectMessage)JBossMessage.copy(jbossMessage);      ensureEquivalent((ObjectMessage)jbossMessage, (ObjectMessage)copy);   }