@Test
public void testJsonEncoding() {

  StringBuilder sb = new StringBuilder();
  sb.append('\"');
  Strings.escapeJsonString("\n\u0008\u0000abc\"", sb);
  sb.append('\"');
  Assert.assertEquals("\"\\n\\b\\u0000abc\\\"\"", sb.toString());
}