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 ns1    GrouperStem ns1 = GrouperStem.create(                         s, Constants.ns1s, Constants.ns1e                       );    // Create g0    GrouperGroup g0  = GrouperGroup.create(                         s, Constants.g0s, Constants.g0e                       );    // Create g1    GrouperGroup g1  = GrouperGroup.create(                         s, Constants.g1s, Constants.g1e                       );    // Load m0    GrouperMember m0 = GrouperMember.load(                         s, Constants.mem0I, Constants.mem0T                       );    // Add m0 to g0's "readers"    try {      g0.listAddVal(m0, "readers");      Assert.assertTrue("add m0 to g0", true);    } catch (RuntimeException e) {      Assert.fail("add m0 to g0");    }    // Add g0 to g1's "readers"    try {      g1.listAddVal(g0.toMember(), "readers");      Assert.assertTrue("add g0 to g1", true);    } catch (RuntimeException e) {      Assert.fail("add g0 to g1");    }    // Now inspect g0's, resulting list values    Assert.assertTrue(      "g0 readers == 1", g0.listVals("readers").size() == 1    );    Assert.assertTrue(      "g0 imm readers == 1", g0.listImmVals("readers").size() == 1    );    Assert.assertTrue(      "g0 eff readers == 0", g0.listEffVals("readers").size() == 0    );    Iterator iter0I = g0.listImmVals().iterator();    while (iter0I.hasNext()) {      GrouperList lv = (GrouperList) iter0I.next();      Assert.assertTrue("g0 empty chain", lv.chain().size() == 0);      Assert.assertNull("g0 null via", lv.via());    }    // Now inspect g1's, resulting list values    Assert.assertTrue(      "g1 readers == 1", g1.listVals("readers").size() == 1    );    Assert.assertTrue(      "g1 imm readers == 1", g1.listImmVals("readers").size() == 1    );    Assert.assertTrue(      "g1 eff readers == 0", g1.listEffVals("readers").size() == 0    );    Iterator iter1I = g1.listImmVals().iterator();    while (iter1I.hasNext()) {      GrouperList lv = (GrouperList) iter1I.next();      Assert.assertTrue("g1 empty chain", lv.chain().size() == 0);      Assert.assertNull("g1 null via", lv.via());    }    s.stop();  }