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                       );    Assert.assertNotNull("ns0 !null", ns0);    // Create ns1    GrouperStem ns1 = GrouperStem.create(                         s, Constants.ns1s, Constants.ns1e                       );    Assert.assertNotNull("ns0 !null", ns0);    // Create g0    GrouperGroup g0  = GrouperGroup.create(                         s, Constants.g0s, Constants.g0e                       );    Assert.assertNotNull("g0 !null", g0);    // Create g1    GrouperGroup g1  = GrouperGroup.create(                         s, Constants.g1s, Constants.g1e                       );    Assert.assertNotNull("g1 !null", g1);    // Load m0    GrouperMember m0 = GrouperMember.load(                         s, Constants.mem0I, Constants.mem0T                       );    Assert.assertNotNull("m0 !null", m0);    // Add m0 to g0's "members"    try {      g0.listAddVal(m0);    } catch (RuntimeException e) {      Assert.fail("add m0 to g0");    }    // Add m0 to g1's "members"    try {      g1.listAddVal(m0);    } catch (RuntimeException e) {      Assert.fail("add m0 to g1");    }    // Delete m0 from g1's "members"    try {      g1.listDelVal(m0);      Assert.assertTrue("delete m0 from g1", true);    } catch (RuntimeException e) {      Assert.fail("delete m0 from g1");    }    // Now inspect g0's, resulting list values    Assert.assertTrue(      "members == 1", g0.listVals("members").size() == 1    );    Assert.assertTrue(      "imm members == 1", g0.listImmVals("members").size() == 1    );    Assert.assertTrue(      "eff members == 0", g0.listEffVals("members").size() == 0    );    // Now inspect g1's, resulting list values    Assert.assertTrue(      "members == 0", g1.listVals("members").size() == 0    );    Assert.assertTrue(      "imm members == 0", g1.listImmVals("members").size() == 0    );    Assert.assertTrue(      "eff members == 0", g1.listEffVals("members").size() == 0    );    s.stop();  }