Assert.assertEquals(null, t2.getPruebaIgnore());
}
@Test
public void testModifyCollection(){
Collection1 test = new Collection1();
test.setName("name");
Collection2 t1 = new Collection2();
t1.setDescription("description1");
Collection2 t2 = new Collection2();
t2.setDescription("description2");
Collection2 t3 = new Collection2();
t3.setDescription("description3");
ArrayList array = new ArrayList();
array.add(t1);
array.add(t2);
array.add(t3);
test.setCollection2(array);
Assert.assertTrue(admin.save(test));
Assert.assertTrue(admin.obtain(test, "name = 'name'"));
Collection2 t = new Collection2();
t.setDescription("description added");
test.getCollection2().add(t);
Assert.assertTrue(admin.modify(test));
Collection1 tt = new Collection1();
Assert.assertTrue(admin.obtain(tt, "name = 'name'"));
Assert.assertEquals("description added",
((Collection2)tt.getCollection2().get(tt.getCollection2().size()-1)).getDescription());
Assert.assertTrue(admin.delete(test));
}