source: class JMSMappingOutboundTransformerTest {
  
      private final UUID TEST_OBJECT_VALUE;
      private final String TEST_ADDRESS;
  
      @Test
      public void testConvertCompressedObjectMessageToAmqpMessageUnknownEncodingGetsDataSection() throws Exception {
  
target:         ActiveMQObjectMessage outbound = createObjectMessage(TEST_OBJECT_VALUE, true);
          outbound.setShortProperty(JMS_AMQP_ORIGINAL_ENCODING, AMQP_UNKNOWN);
          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 Data);
          assertFalse(0 == ((Data) amqp.getBody()).getValue().getLength());
  
          Object value = deserialize(((Data) amqp.getBody()).getValue().getArray());
          assertNotNull(value);
          assertTrue(value instanceof UUID);
      }
  
  }