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                       );    // Load m0    GrouperMember m0 = GrouperMember.load(                         s, Constants.mem0I, Constants.mem0T                       );    // Add m0 to gA's "members"    try {      gA.listAddVal(m0);    } catch (RuntimeException e) {      Assert.fail("add m0 to gA");    }    // Add m0 to gB's "members"    try {      gB.listAddVal(m0);    } catch (RuntimeException e) {      Assert.fail("add m0 to gB");    }    // Add gB to gA's "members"    try {      gA.listAddVal(gB.toMember());    } catch (RuntimeException e) {      Assert.fail("add gB to gA");    }    // Add gA to gB's "members"    try {      gB.listAddVal(gA.toMember());    } catch (RuntimeException e) {      Assert.fail("add gA to gB");    }    // Now inspect gA's, resulting list values    Assert.assertTrue(      "gA members == 7", gA.listVals("members").size() == 7    );    Assert.assertTrue(      "gA imm members == 2", gA.listImmVals("members").size() == 2    );    Assert.assertTrue(      "gA eff members == 5", gA.listEffVals("members").size() == 5    );    // Now inspect gB's, resulting list values    Assert.assertTrue(      "gB members == 5", gB.listVals("members").size() == 5    );    Assert.assertTrue(      "gB imm members == 2", gB.listImmVals("members").size() == 2    );    Assert.assertTrue(      "gB eff members == 3", gB.listEffVals("members").size() == 3    );    s.stop();  }