@Test
public void testSendBuffer() {

   ByteBuf buffer = Unpooled.buffer(255);
   AMQPStandardMessage message = new AMQPStandardMessage(0, encodedProtonMessage, null, null);
   message.sendBuffer(buffer, 1);
   assertNotNull(buffer);
   AMQPStandardMessage copy = new AMQPStandardMessage(0, new NettyReadable(buffer), null, null);
   assertProtonMessageEquals(message.getProtonMessage(), copy.getProtonMessage());
}