@Test
public void convertsListToJson() throws Exception {

    List<Book> books = newArrayList(junitBook, csharpBook, javaScriptBook);
    JsonValue jsonArray = JsonGenerator.createJsonArray(books);
    assertTrue(jsonArray.isArray());
    assertionHelper.assertThatJsonArrayHasAllItemsFromCollection(books, jsonArray);
}