@Test
public void shouldDecodeLegacyBinary() {
BinaryDocument document = converter.decode("id",
Unpooled.copiedBuffer("value", CharsetUtil.UTF_8), 0, 0,
TranscoderUtils.BINARY_COMPAT_FLAGS, ResponseStatus.SUCCESS);
assertEquals("value", document.content().toString(CharsetUtil.UTF_8));
}
@Test
public void shouldNotReleaseBufferWhenDecoded() {
ByteBuf content = ReferenceCountUtil.releaseLater(Unpooled.copiedBuffer("value", CharsetUtil.UTF_8));