### Question:
JmsTextMessage extends JmsMessage implements TextMessage { @Override public void setText(String text) throws JMSException, MessageNotWriteableException { checkReadOnlyBody(); this.facade.setText(text); } JmsTextMessage(JmsTextMessageFacade facade); @Override JmsTextMessage copy(); @Override void setText(String text); @Override String getText(); @Override String toString(); @Override boolean isBodyAssignableTo(@SuppressWarnings("rawtypes") Class target);  }### Answer:
@Test public void testSetText() throws JMSException { JmsTextMessage msg = factory.createTextMessage(); String str = "testText"; msg.setText(str); assertEquals(msg.getText(), str); }