// > SETUP HELPER METHODS
  private Group createClass(int memberCount) throws Exception {
    Group g = new Group(new Group(null, null), "test-group");
    groupDao.saveGroup(g);

    for (int i = 0; i < memberCount; i++) {
      Contact c = new Contact("test-contact-" + i, "012345" + i, null, null, null, true);
      contactDao.saveContact(c);
      groupMembershipDao.addMember(g, c);
    }

    return g;
  }
 private Contact[] getContacts(Group g) {
   return groupMembershipDao.getActiveMembers(g).toArray(new Contact[0]);
 }