@Test
public void createsSetOfObjects() throws Exception {

    ArrayValue jsonArray = createJsonArray(createJsonBook(createJunitBook()),
                                           createJsonBook(createCSharpBook())
                                          );
    Set set = ObjectBuilder.createCollection(Set.class, newParameterizedType(Set.class, Book.class), jsonArray);
    assertEquals(newHashSet(createJunitBook(), createCSharpBook()), set);
}