@Test
public void testGetMemoryEstimate() {

   AMQPStandardMessage decoded = new AMQPStandardMessage(0, encodedProtonMessage, new TypedProperties(), null);
   int estimate = decoded.getMemoryEstimate();
   assertTrue(encodedProtonMessage.length < decoded.getMemoryEstimate());
   assertEquals(estimate, decoded.getMemoryEstimate());
   decoded.putStringProperty(new SimpleString("newProperty"), "newValue");
   decoded.reencode();
   assertNotEquals(estimate, decoded.getMemoryEstimate());
}