fp = pm.getFetchPlan().clearGroups();
fp.addGroup("listeConventions");
//execute
Collection results = (Collection) query.execute();
//detach all the conventions retrieved
Collection detachedConv = pm.detachCopyAll(results);
Iterator itDC = detachedConv.iterator();
while (itDC.hasNext()) {
ConventionHelper dConv = (ConventionHelper) itDC.next();
Collection zonesGeo = dConv.getZoneGeographiques();
assertEquals("Size of zoneGeo for convention1 and its detached copy si not the same.", convention1.getZoneGeographiques().size(), zonesGeo.size());