rootAdmin.addGroups(user, user_other_group);
rootAdmin.addGroups(user, user_other_group, common_group);
	public void createUsersAndGroups() throws Exception {				init();				cname = UUID.randomUUID().toString();		gname = UUID.randomUUID().toString();		// shortcut for root service factory, created in super class		r = rootServices;		// create the common group		common_group.setName(cname);		common_group = new ExperimenterGroup(rootAdmin				.createGroup(common_group),false);				// TODO -- this should be a task		// create the new group		user_other_group.setName(gname);		user_other_group = new ExperimenterGroup(rootAdmin				.createGroup(user_other_group), false);				// create the PI for the new group		Login piLogin = new Login(UUID.randomUUID().toString(),"empty",gname,"Test");		p = new ServiceFactory(piLogin);		pi.setOmeName(piLogin.getName());		pi.setFirstName("read");		pi.setLastName("security -- leader of user_other_group");		pi = new Experimenter(rootAdmin.createUser(pi,gname), false);		// make the PI the group leader.		rootAdmin.setGroupOwner(user_other_group, pi);		// ENDTODO				// create a new user in that group		Login userLogin = new Login(UUID.randomUUID().toString(), "empty",gname,"Test");		u = new ServiceFactory(userLogin);		user.setOmeName(userLogin.getName());		user.setFirstName("read");		user.setLastName("security");		user = new Experimenter(rootAdmin.createUser(user,gname), false);		rootAdmin.addGroups(user, user_other_group);		// create another user in that group		Login otherLogin = new Login(UUID.randomUUID().toString(), "empty",gname,"Test");		o = new ServiceFactory(otherLogin);		other.setOmeName(otherLogin.getName());		other.setFirstName("read");		other.setLastName("security2");		other = new Experimenter(rootAdmin.createUser(other,gname), false);		rootAdmin.addGroups(other, user_other_group);				// create a third regular user not in that group		Login worldLogin = new Login(UUID.randomUUID().toString(), "empty" /* not gname!*/);		w = new ServiceFactory(worldLogin);		world.setOmeName(worldLogin.getName());		world.setFirstName("read");		world.setLastName("Security -- not in their group");		world = new Experimenter(rootAdmin.createUser(world,cname), false);		// not in same group	}