i.setContact1(i2);
list1.add(i);
}
list.add(list1);
CollectionObj o = new CollectionObj();
o.setList(list);
String json = Json.toJson(o);
CollectionObj o2 = Json.toObject(json, CollectionObj.class);
Assert.assertThat(o2.getList().size(), is(2));
Assert.assertThat(o2.getList().get(0).size(), is(10));
Assert.assertThat(o2.getList().get(0).get(1).getId(), is(33443));
Assert.assertThat(o2.getList().get(1).get(1).getId(), is(1001));
}