pm.currentTransaction().begin();
pm.makePersistentAll(as);
pm.currentTransaction().commit();
as = null;
pm.evictAll();
pm.currentTransaction().begin();
Query q = pm.newQuery(Address.class);
Collection c = (Collection) q.execute();
assertSameCollection("Bad collection of address from the query", getData(size), c);