@Test
public void testConvertEmptyObjectMessageToAmqpMessageWithAmqpValueBody() throws Exception {

    ActiveMQObjectMessage outbound = createObjectMessage();
    outbound.setShortProperty(JMS_AMQP_ORIGINAL_ENCODING, AMQP_VALUE_BINARY);
    outbound.onSend();
    outbound.storeContent();
    JMSMappingOutboundTransformer transformer = new JMSMappingOutboundTransformer();
    EncodedMessage encoded = transformer.transform(outbound);
    assertNotNull(encoded);
    Message amqp = encoded.decode();
    assertNotNull(amqp.getBody());
    assertTrue(amqp.getBody() instanceof AmqpValue);
    assertTrue(((AmqpValue)amqp.getBody()).getValue() instanceof Binary);
    assertEquals(0, ((Binary) ((AmqpValue) amqp.getBody()).getValue()).getLength());
}