converter = new RawJsonTranscoder();
}
@Test
public void shouldEncodeRawJson() {
RawJsonDocument document = RawJsonDocument.create("id", "{\"test:\":true}");
Tuple2<ByteBuf, Integer> encoded = converter.encode(document);
assertEquals("{\"test:\":true}", encoded.value1().toString(CharsetUtil.UTF_8));
assertEquals(TranscoderUtils.JSON_COMPAT_FLAGS, (long) encoded.value2());
}