### Question:
JmsTextMessage extends JmsMessage implements TextMessage { @Override public void clearBody() throws JMSException { super.clearBody(); this.internalSetText(null); } JmsTextMessage(JmsMessageFacade facade); @Override JmsMessage copy(); @Override void setText(String text); @Override String getText(); @Override void clearBody(); @Override String toString();  }### Answer:
@Test public void testClearBody() throws JMSException, IOException { JmsTextMessage textMessage = factory.createTextMessage(); textMessage.setText("string"); textMessage.clearBody(); assertFalse(textMessage.isReadOnlyBody()); assertNull(textMessage.getText()); try { textMessage.setText("String"); textMessage.getText(); } catch (MessageNotWriteableException mnwe) { fail("should be writeable"); } catch (MessageNotReadableException mnre) { fail("should be readable"); } }