### Question:
JmsObjectMessage extends JmsMessage implements ObjectMessage { @Override public void clearBody() throws JMSException { super.clearBody(); this.object = null; } JmsObjectMessage(JmsMessageFacade facade); @Override JmsMessage copy(); @Override void clearBody(); @Override void setObject(Serializable newObject); @Override Serializable getObject(); @Override String toString();  }### Answer:
@Test public void testClearBody() throws JMSException { JmsObjectMessage objectMessage = factory.createObjectMessage(); try { objectMessage.setObject("String"); objectMessage.clearBody(); assertFalse(objectMessage.isReadOnlyBody()); assertNull(objectMessage.getObject()); objectMessage.setObject("String"); objectMessage.getObject(); } catch (MessageNotWriteableException mnwe) { fail("should be writeable"); } }