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 testCreateG0() {    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 g0    GrouperGroup g0 = GrouperGroup.create(                        s, Constants.g0s, Constants.g0e                      );      Assert.assertNotNull("g0 !null", g0);    Assert.assertTrue(                      "g0 right class",                       Constants.KLASS_GG.equals( g0.getClass().getName() )                     );    String type = g0.type();    Assert.assertNotNull("g0 type !null", type);    Assert.assertTrue("g0 type val", type.equals(Grouper.DEF_GROUP_TYPE));    String stem = g0.attribute("stem").value();    Assert.assertNotNull("g0 stem !null", stem);    Assert.assertTrue("g0 stem val", stem.equals(Constants.g0s));    String extn = g0.attribute("extension").value();    Assert.assertNotNull("g0 extn !null", extn);    Assert.assertTrue("g0 extn val", extn.equals(Constants.g0e));    s.stop();  }