for(int i=0;iter.hasNext();i++) {
Object key = iter.next();
String[] groups0 = (String[])newMap0.get(key);
String[] groups1 = (String[])newMap1.get(key);
if( (groups0 == null) || (groups1 == null) ) {
throw new TestException("failure -- "
+" no mapping for lookup service "+i);
}
if( !GroupsUtil.compareGroupSets(groups0,groups1,Level.OFF) ) {
GroupsUtil.displayGroupSet(groups0,"groups0",
Level.FINE);
GroupsUtil.displayGroupSet(groups1,"groups1",
Level.FINE);
throw new TestException("failure -- "
+" groups not equal for lookup service "+i);
}
}//end loop
}//end sync
}//end testGroupSetContainment