@Test
public void testGetDeliveryAnnotations() {

   MessageImpl protonMessage = createProtonMessage();
   DeliveryAnnotations deliveryAnnotations = new DeliveryAnnotations(new HashMap<>());
   deliveryAnnotations.getValue().put(Symbol.valueOf(UUID.randomUUID().toString()), "test-1");
   protonMessage.setDeliveryAnnotations(deliveryAnnotations);
   AMQPStandardMessage message = new AMQPStandardMessage(0, encodeMessage(protonMessage), null, null);
   DeliveryAnnotations decoded = message.getDeliveryAnnotations();
   assertNotSame(decoded, protonMessage.getDeliveryAnnotations());
   assertDeliveryAnnotationsEquals(protonMessage.getDeliveryAnnotations(), decoded);
   // Update the values
   decoded.getValue().put(Symbol.valueOf(UUID.randomUUID().toString()), "test-2");
   // Check that the message is unaffected.
   assertDeliveryAnnotationsNotEquals(protonMessage.getDeliveryAnnotations(), decoded);
}