public static org.sakaiproject.site.api.Site addSite(
      java.lang.String param0, org.sakaiproject.site.api.Site param1)
      throws org.sakaiproject.exception.IdInvalidException,
          org.sakaiproject.exception.IdUsedException,
          org.sakaiproject.exception.PermissionException {
    org.sakaiproject.site.api.SiteService service = getInstance();
    if (service == null) return null;

    return service.addSite(param0, param1);
  }
  public void setUp() throws Exception {
    userDirectoryService = getService(UserDirectoryService.class);
    siteService = getService(SiteService.class);
    authzGroupService = getService(AuthzGroupService.class);

    actAsUserEid("admin");

    // Add test users.
    addUserWithEid(NOT_IN_SITE_USER_EID);
    addUserWithEid(UNADVISED_USER_EID);
    addUserWithEid(DISPLAY_ADVISED_USER_EID);

    // Add test sites.
    Site site = siteService.addSite(STANDARD_SITE_NAME, "project");
    siteService.save(site);
    standardSiteUid = site.getReference();

    site = siteService.addSite(CONTEXTUAL_SITE_NAME, "project");
    siteService.save(site);
    contextualSiteUid = site.getReference();
  }