@Test
public void testGetScheduledDeliveryTimeMessageSentWithFixedTimeAndDelay() {

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