Subject subj = SubjectFactory.getSubject(Constants.rootI, Constants.rootT);
Subject subj = null; try { subj = SubjectFactory.getSubject(Constants.rootI, Constants.rootT); } catch (SubjectNotFoundException e) {  e.printStackTrace(); }
  public void testHas1() {    Subject subj = SubjectFactory.getSubject(Constants.rootI, Constants.rootT);    GrouperSession s = GrouperSession.start(subj);    // Create ns0    GrouperStem ns0 = GrouperStem.create(                         s, Constants.ns0s, Constants.ns0e                       );    // Create g    GrouperGroup g0  = GrouperGroup.create(                         s, Constants.g0s, Constants.g0e                       );    // Assert current privs    List privs = s.access().has(s, g0);    Assert.assertTrue("privs == 6", privs.size() == 6);    // Because we are connected as root, everything will return true    Assert.assertTrue(      "has ADMIN",  s.access().has(s, g0, Grouper.PRIV_ADMIN)    );    Assert.assertTrue(      "has OPTIN",  s.access().has(s, g0, Grouper.PRIV_OPTIN)    );    Assert.assertTrue(      "has OPTOUT",  s.access().has(s, g0, Grouper.PRIV_OPTOUT)    );    Assert.assertTrue(      "has READ",  s.access().has(s, g0, Grouper.PRIV_READ)    );    Assert.assertTrue(      "has UPDATE", s.access().has(s, g0, Grouper.PRIV_UPDATE)    );    Assert.assertTrue(      "has VIEW",  s.access().has(s, g0, Grouper.PRIV_VIEW)    );    // We're done    s.stop();  }