* Finally, that fetch group is removed from the fetch plan again.
* @param query the query
*/
private void checkFetchGroup2(Query query) {
FetchPlan fetchplan = query.getFetchPlan();
fetchplan.addGroup(FETCH_GROUP_2);
Collection fetchgroups = fetchplan.getGroups();
assertTrue("FetchPlan should include fetchGroup1 and fetchGroup2",
fetchgroups.contains(FETCH_GROUP_1) &&
fetchgroups.contains(FETCH_GROUP_2));
try {