### Question:
AmqpJmsTextMessageFacade extends AmqpJmsMessageFacade implements JmsTextMessageFacade { @Override public boolean hasBody() { try { return getText() != null; } catch (Exception e) { return false; } } AmqpJmsTextMessageFacade();   AmqpJmsTextMessageFacade(Charset charset); @Override byte getJmsMsgType(); @Override AmqpJmsTextMessageFacade copy(); @Override String getText(); @Override void setText(String value); @Override void clearBody(); @Override boolean hasBody(); @Override JmsTextMessage asJmsMessage();  }### Answer:
@Test public void testGetTextWithNonAmqpValueOrDataSectionReportsNoBody() throws Exception { Message message = Message.Factory.create(); message.setBody(new AmqpSequence(new ArrayList<Object>())); AmqpJmsTextMessageFacade amqpTextMessageFacade = createReceivedTextMessageFacade(createMockAmqpConsumer(), message); assertFalse(amqpTextMessageFacade.hasBody()); }