String bgWithWaitingListDesc = "some short description for Group with WaitingList";
Boolean enableWaitinglist = new Boolean(true);
Boolean enableAutoCloseRanks = new Boolean(true);
BGContextManager bgcm = BGContextManagerImpl.getInstance();
BGContext groupContext = bgcm.createAndPersistBGContext("c1name", "c1desc", BusinessGroup.TYPE_LEARNINGROUP, null, true);
System.out.println("testAddToWaitingListAndFireEvent: groupContext=" + groupContext);
bgWithWaitingList = bgManager.createAndPersistBusinessGroup(BusinessGroup.TYPE_LEARNINGROUP, id1, bgWithWaitingListName,
bgWithWaitingListDesc, null, null, enableWaitinglist, enableAutoCloseRanks, groupContext);
bgWithWaitingList.setMaxParticipants(new Integer(2));
// create mock objects