@Test
public void createsSetOfStrings() throws Exception {

    ArrayValue jsonArray = createJsonArray("to", "be", "or", "not", "to", "be");
    Set set = ObjectBuilder.createCollection(Set.class, newParameterizedType(Set.class, String.class), jsonArray);
    assertEquals(newHashSet("to", "be", "or", "not", "to", "be"), set);
}