@Test
public void testSetExpiration() {

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