Subject subj = SubjectFactory.getSubject(Constants.rootI, Constants.rootT);
Subject subj = null; try { subj = SubjectFactory.getSubject(Constants.rootI, Constants.rootT); } catch (SubjectNotFoundException e) {  e.printStackTrace(); }
  public void testCreateG1() {    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 g1    GrouperGroup g1 = GrouperGroup.create(                        s, Constants.g1s, Constants.g1e                      );      Assert.assertNotNull("g1 !null", g1);    Assert.assertTrue(                      "g1 right class",                       Constants.KLASS_GG.equals( g1.getClass().getName() )                     );    String type = g1.type();    Assert.assertNotNull("g1 type !null", type);    Assert.assertTrue("g1 type val", type.equals(Grouper.DEF_GROUP_TYPE));    String stem = g1.attribute("stem").value();    Assert.assertNotNull("g1 stem !null", stem);    Assert.assertTrue("g1 stem val", stem.equals(Constants.g1s));    String extn = g1.attribute("extension").value();    Assert.assertNotNull("g1 extn !null", extn);    Assert.assertTrue("g1 extn val", extn.equals(Constants.g1e));    s.stop();  }