@Test
public void testConvertTextMessageToAmqpMessageWithNoBodyOriginalEncodingWasNull() throws Exception {

    ActiveMQTextMessage outbound = createTextMessage();
    outbound.setShortProperty(JMS_AMQP_ORIGINAL_ENCODING, AMQP_NULL);
    outbound.onSend();
    outbound.storeContent();
    JMSMappingOutboundTransformer transformer = new JMSMappingOutboundTransformer();
    EncodedMessage encoded = transformer.transform(outbound);
    assertNotNull(encoded);
    Message amqp = encoded.decode();
    assertNull(amqp.getBody());
}