@Test
public void convertsArrayToJson() throws Exception {

    Book[] books = new Book[]{junitBook, csharpBook, javaScriptBook};
    JsonValue jsonArray = JsonGenerator.createJsonArray(books);
    assertTrue(jsonArray.isArray());
    assertionHelper.assertThatJsonArrayHasAllItemsFromArray(books, jsonArray);
}