@Test
public void createsMultiDimensionArrayOfObjects() throws Exception {

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