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");    }    s.stop();    // Now reconnect, reload and inspect chains    GrouperSession s1 = GrouperSession.start(subj);    // Load g0    GrouperGroup gc0 = GrouperGroup.load(                         s1, Constants.g0s, Constants.g0e                       );    Assert.assertNotNull("gc0 !null", gc0);    GrouperGroup gc1 = GrouperGroup.load(                         s1, Constants.g1s, Constants.g1e                       );    Assert.assertNotNull("gc1 !null", gc1);    // Now inspect chains    Iterator iter0I = gc0.listImmVals("members").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());    }    Iterator iter1I = gc1.listImmVals("members").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());    }    s1.stop();  }