### Question:
BufferUtils { public static void writeString(final Buffer buffer, final String value) { byte[] string = value.getBytes(StandardCharsets.UTF_8); buffer.appendShort((short) string.length); buffer.appendBytes(string); }  static void writeString(final Buffer buffer, final String value); static void writeMap(final Buffer buffer, final MultiMap<String, String> params); static String readString(final Buffer buffer, final int[] location); static MultiMap<String, String> readMap(Buffer buffer, int[] locationHolder);  }### Answer:
@Test public void testWriteString() throws Exception { Buffer buffer = Buffer.buffer(); BufferUtils.writeString(buffer, "hi mom"); final short size = buffer.getShort(0); ok = size == 6 || die(); final String utf_8 = buffer.getString(2, size + 2, StandardCharsets.UTF_8.displayName()); puts(utf_8); ok = utf_8.equals("hi mom") || die(); }