@Test
public void testGetExpirationFromMessageUsingAbsoluteExpiration() {

   final Date expirationTime = new Date(System.currentTimeMillis());
   MessageImpl protonMessage = (MessageImpl) Message.Factory.create();
   Properties properties = new Properties();
   properties.setAbsoluteExpiryTime(expirationTime);
   protonMessage.setProperties(properties);
   AMQPStandardMessage decoded = encodeAndDecodeMessage(protonMessage);
   assertEquals(expirationTime.getTime(), decoded.getExpiration());
}