@Test
public void testGetApplicationProperties() {

   MessageImpl protonMessage = createProtonMessage();
   AMQPStandardMessage message = new AMQPStandardMessage(0, encodeMessage(protonMessage), null, null);
   ApplicationProperties decoded = message.getApplicationProperties();
   assertNotSame(decoded, protonMessage.getApplicationProperties());
   assertApplicationPropertiesEquals(protonMessage.getApplicationProperties(), decoded);
   // Update the values
   decoded.getValue().put(UUID.randomUUID().toString(), "test");
   // Check that the message is unaffected.
   assertApplicationPropertiesNotEquals(protonMessage.getApplicationProperties(), decoded);
}