@Test
public void testQueryWithCollection(){
QueryWithCollection with = new QueryWithCollection();
with.setDescription("description");
ArrayList<QueryCollection> qu = new ArrayList<QueryCollection>();
qu.add(new QueryCollection(11));
qu.add(new QueryCollection(22));
qu.add(new QueryCollection(33));
with.setQueryCollection(qu);
Assert.assertTrue(admin.save(with));
QueryWithCollection with2 = new QueryWithCollection();
with2.setDescription("description2");
ArrayList<QueryCollection> qu2 = new ArrayList<QueryCollection>();
qu2.add(new QueryCollection(44));
qu2.add(new QueryCollection(55));
qu2.add(new QueryCollection(66));
with2.setQueryCollection(qu2);
Assert.assertTrue(admin.save(with2));
QueryWithCollection with3 = new QueryWithCollection();
admin.obtain(with3).If("value", QueryCollection.class, "queryCollection").equal(22).find();