@Test
public void testGetTimestampFromMessage() {

   Date timestamp = new Date(System.currentTimeMillis());
   MessageImpl protonMessage = (MessageImpl) Message.Factory.create();
   protonMessage.setHeader(new Header());
   Properties properties = new Properties();
   properties.setCreationTime(timestamp);
   protonMessage.setProperties(properties);
   AMQPStandardMessage decoded = encodeAndDecodeMessage(protonMessage);
   assertEquals(timestamp.getTime(), decoded.getTimestamp());
}