@Test
public void testGetSendBuffer() {

   AMQPStandardMessage message = new AMQPStandardMessage(0, encodedProtonMessage, null, null);
   ReadableBuffer buffer = message.getSendBuffer(1);
   assertNotNull(buffer);
   assertTrue(buffer.hasArray());
   assertTrue(Arrays.equals(encodedProtonMessage, buffer.array()));
   AMQPStandardMessage copy = new AMQPStandardMessage(0, buffer, null, null);
   assertProtonMessageEquals(message.getProtonMessage(), copy.getProtonMessage());
}