### Question:
JsonWriter { private void serializeString(String string) { writer.print("\""); String backslashesReplaced = backslashPattern.matcher(string).replaceAll(backslashReplacement); String quotesReplaced = quotePattern.matcher(backslashesReplaced).replaceAll(quoteReplacement); String newlinesReplaced = newlinePattern.matcher(quotesReplaced).replaceAll(newlineReplacement); writer.print(newlinesReplaced); writer.print("\""); } JsonWriter(OutputStream outputStream);   }### Answer:
@Test public void serializeString() throws Exception { verifyRoundTrip("foo"); }