// cm.removeAllBGContextsFromResource(course1);
CourseGroupManager cgm = PersistingCourseGroupManager.getInstance(course1);
cgm.deleteCourseGroupmanagement();
assertTrue(cm.findBGContextsForResource(course1, true, true).size() == 0);
assertTrue(cm.findBGContextsForResource(course1, BusinessGroup.TYPE_LEARNINGROUP, true, true).size() == 0);
assertTrue(cm.findBGContextsForResource(course1, BusinessGroup.TYPE_RIGHTGROUP, true, true).size() == 0);
}
public void testRemoveBGFromArea() {
BGContextManager cm = BGContextManagerImpl.getInstance();
BGContext bgContext = cm.createAndAddBGContextToResource("c2name", course1, BusinessGroup.TYPE_LEARNINGROUP, null, true);