@Test
public void createsArrayOfObjects() throws Exception {

    ArrayValue jsonArray = createJsonArray(createJsonBook(createJunitBook()),
                                           createJsonBook(createCSharpBook())
                                          );
    Object array = ObjectBuilder.createArray(Book[].class, jsonArray);
    assertArrayEquals(new Object[]{createJunitBook(), createCSharpBook()}, (Object[])array);
}