fullGroup1 = AbstractTestBase.initTestDB.addGroup(prefix + "FullGroup1", fullUser1.getUsername());
readonlyGroup1 = AbstractTestBase.initTestDB.addGroup(prefix + "ReadonlyGroup1", readonlyUser1.getUsername());
minimalGroup1 = AbstractTestBase.initTestDB.addGroup(prefix + "MinimalGroup", minimalUser1.getUsername());
testBase.logon(owner);
final TeamCalDO cal = new TeamCalDO();
cal.setOwner(owner);
cal.setFullAccessGroupIds("" + fullGroup1.getId());
cal.setReadonlyAccessGroupIds("" + readonlyGroup1.getId());
cal.setMinimalAccessGroupIds("" + minimalGroup1.getId());
cal.setFullAccessUserIds("" + fullUser3.getId());
cal.setReadonlyAccessUserIds("" + readonlyUser3.getId());
cal.setMinimalAccessUserIds("" + minimalUser3.getId());
cal.setTitle(prefix + ".title");
final Integer calId = (Integer) teamCalDao.save(cal);
return teamCalDao.getById(calId);
}