@Test
public void writeArray() throws Exception {

    ByteArrayOutputStream os = new ByteArrayOutputStream();
    JsonWriter writer = writer(os);
    writer.writeArray()
            .writeString("hello", true)
            .writeString("world", false)
            .writeString("again", true)
            .done()
            .close();
    assertThat(os.toString(charset.name())).isEqualTo("[\"hello\",\"again\"]");
}