### Question:
JsonWriter { private void serializeList(List list, int indentation) { writer.print("["); String comma = ""; for (Object value : list) { writer.println(comma); indent(indentation + 1); serialize(value, indentation + 1); comma = ","; } writer.println(); indent(indentation); writer.print("]"); } JsonWriter(OutputStream outputStream);   }### Answer:
@Test public void serializeList() throws Exception { verifyRoundTrip(Arrays.asList(1.0, "foo", null, true, false, "bar")); }