### Question:
JmsTextMessage extends JmsMessage implements TextMessage { @Override public void setText(String text) throws MessageNotWriteableException { checkReadOnlyBody(); this.text = text; } JmsTextMessage(JmsMessageFacade facade); @Override JmsMessage copy(); @Override void setText(String text); @Override String getText(); @Override void clearBody(); @Override String toString();  }### Answer:
@Test public void testSetText() { JmsTextMessage msg = factory.createTextMessage(); String str = "testText"; try { msg.setText(str); assertEquals(msg.getText(), str); } catch (JMSException e) { e.printStackTrace(); } }