Subject subj = SubjectFactory.getSubject(Constants.rootI, Constants.rootT);
Subject subj = null; try { subj = SubjectFactory.getSubject(Constants.rootI, Constants.rootT); } catch (SubjectNotFoundException e1) {  e1.printStackTrace(); }
  public void testMoF() {    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 gA    GrouperGroup gA  = GrouperGroup.create(                         s, Constants.gAs, Constants.gAe                       );    // Create gB    GrouperGroup gB  = GrouperGroup.create(                         s, Constants.gBs, Constants.gBe                       );    // Create gC    GrouperGroup gC  = GrouperGroup.create(                         s, Constants.gCs, Constants.gCe                       );    // Load m0    GrouperMember m0 = GrouperMember.load(                         s, Constants.mem0I, Constants.mem0T                       );    // Load m1    GrouperMember m1 = GrouperMember.load(                         s, Constants.mem1I, Constants.mem1T                       );    // Add m0 to gA's "members"    try {      gA.listAddVal(m0);    } catch (RuntimeException e) {      Assert.fail("add m0 to gA");    }    // Add gA to gB's "members"    try {      gB.listAddVal(gA.toMember());    } catch (RuntimeException e) {      Assert.fail("add gA to gB");    }    // Add gB to gC's "members"    try {      gC.listAddVal(gB.toMember());    } catch (RuntimeException e) {      Assert.fail("add gB to gC");    }      // Now test for membership    Assert.assertTrue("m0 isMember of gA",   m0.isMember(gA));    Assert.assertTrue("m0 isMember of gB",   m0.isMember(gB));    Assert.assertTrue("m0 isMember of gC",   m0.isMember(gC));    Assert.assertFalse("m1 !isMember of gA", m1.isMember(gA));    Assert.assertFalse("m1 !isMember of gB", m1.isMember(gB));    Assert.assertFalse("m1 !isMember of gC", m1.isMember(gC));    Assert.assertFalse("gA !isMember of gA", gA.toMember().isMember(gA));    Assert.assertTrue("gA isMember of gB",   gA.toMember().isMember(gB));    Assert.assertTrue("gA isMember of gC",   gA.toMember().isMember(gC));    Assert.assertFalse("gB !isMember of gA", gB.toMember().isMember(gA));    Assert.assertFalse("gB !isMember of gB", gB.toMember().isMember(gB));    Assert.assertTrue("gB isMember of gC",   gB.toMember().isMember(gC));    Assert.assertFalse("gC !isMember of gA", gC.toMember().isMember(gA));    Assert.assertFalse("gC !isMember of gB", gC.toMember().isMember(gB));    Assert.assertFalse("gC !isMember of gC", gC.toMember().isMember(gC));    s.stop();  }