@Test
public void createsSetOfEnums() throws Exception {

    ArrayValue jsonArray = createJsonArray(JUNIT_IN_ACTION.name(), BEGINNING_C.name());
    Set set = ObjectBuilder.createCollection(Set.class, newParameterizedType(Set.class, BookEnum.class), jsonArray);
    assertEquals(newHashSet(JUNIT_IN_ACTION, BEGINNING_C), set);
}