@Test
public void testGetScheduledDeliveryTimeMessageSentWithFixedDelay() {

   final long scheduledDelay = 100000;
   MessageImpl protonMessage = (MessageImpl) Message.Factory.create();
   MessageAnnotations annotations = new MessageAnnotations(new HashMap<>());
   annotations.getValue().put(AMQPMessageSupport.SCHEDULED_DELIVERY_DELAY, scheduledDelay);
   protonMessage.setMessageAnnotations(annotations);
   AMQPStandardMessage decoded = encodeAndDecodeMessage(protonMessage);
   assertTrue(decoded.getScheduledDeliveryTime().longValue() > System.currentTimeMillis());
}