System.err.println("reader: " + cbuf.readerIndex());
System.err.println("writer: " + cbuf.writerIndex());
System.err.println("capacity: " + cbuf.capacity());
// see https://github.com/netty/netty/issues/1976
cbuf.discardSomeReadBytes();
}
/**
* Test a simple message to endcode and then decode.
*