public void shouldDecodeCommonString() {
ByteBuf content = Unpooled.copiedBuffer("value", CharsetUtil.UTF_8);
StringDocument decoded = converter.decode("id", content, 0, 0, TranscoderUtils.STRING_COMMON_FLAGS,
ResponseStatus.SUCCESS);
assertEquals("value", decoded.content());
}
@Test
public void shouldDecodeLegacyString() {
ByteBuf content = Unpooled.copiedBuffer("value", CharsetUtil.UTF_8);