converter = new StringTranscoder();
}
@Test
public void shouldEncodeString() {
StringDocument document = StringDocument.create("id", "value");
Tuple2<ByteBuf, Integer> encoded = converter.encode(document);
assertEquals("value", encoded.value1().toString(CharsetUtil.UTF_8));
assertEquals(TranscoderUtils.STRING_COMPAT_FLAGS, (long) encoded.value2());
}