@Test
public void testGetExpirationFromMessageUsingTTL() {

   final long ttl = 100000;
   MessageImpl protonMessage = (MessageImpl) Message.Factory.create();
   protonMessage.setHeader(new Header());
   protonMessage.setTtl(ttl);
   AMQPStandardMessage decoded = encodeAndDecodeMessage(protonMessage);
   assertTrue(decoded.getExpiration() > System.currentTimeMillis());
}