@Test
void testEncodeJsonUtf16() throws IOException {

  assertEquals(
      Unpooled.copiedBuffer("{\"name\":\"foo\"}", Charset.forName("UTF-16")),
      jsonEncoder.encode(Unpooled.directBuffer(), "utf-16, foo-bar", new Person("foo")));
}