class GroupsResource {

  protected List<Group> listGroups(@Auth User user) {
    logger.info("User '{}' listing groups.", user);
    Set<Group> groups = groupDAO.getGroups();
    return ImmutableList.copyOf(groups);
  }

  @Inject public  GroupsResource(AclDAOFactory aclDAOFactory, GroupDAOFactory groupDAOFactory, AuditLog auditLog);
  @VisibleForTesting  GroupsResource(AclDAO aclDAO, GroupDAO groupDAO, AuditLog auditLog);

}