### Question:
JmsObjectMessage extends JmsMessage implements ObjectMessage { @Override public void setObject(Serializable newObject) throws JMSException { checkReadOnlyBody(); this.object = newObject; } JmsObjectMessage(JmsMessageFacade facade); @Override JmsMessage copy(); @Override void clearBody(); @Override void setObject(Serializable newObject); @Override Serializable getObject(); @Override String toString();  }### Answer:
@Test public void testSetObject() throws JMSException { JmsObjectMessage msg = factory.createObjectMessage(); String str = "testText"; msg.setObject(str); assertTrue(msg.getObject() == str); }