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 testCreateThenAddDesc() {    Subject subj = SubjectFactory.getSubject(Constants.rootI, Constants.rootT);    GrouperSession s = GrouperSession.start(subj);    // Create ns0    GrouperStem ns = GrouperStem.create(                       s, Constants.ns0s, Constants.ns0e                     );        GrouperAttribute desc = ns.attribute("description");    Assert.assertNotNull("desc null", desc);    Assert.assertTrue(      "desc class", Constants.KLASS_NGA.equals(desc.getClass().getName())                      );    Assert.assertTrue(      "desc value", desc.value().equals("")    );    Assert.assertNull("modifySource null", ns.modifySource());    Assert.assertNull("modifySubject null", ns.modifySubject());    Assert.assertNull("modifyTime null", ns.modifyTime());    Assert.assertNotNull("name() !null", ns.name());    Assert.assertTrue(      "name() value",       ns.name().equals(GrouperStem.groupName(Constants.ns0s, Constants.ns0e))    );    // Set description    String text = "test description";    try {      ns.attribute("description", text);      Assert.assertTrue("add description to ns0", true);    } catch (RuntimeException e) {      Assert.fail("add description to ns0");    }    // Check values    GrouperAttribute setDesc = ns.attribute("description");    Assert.assertNotNull("set description !null", setDesc);    Assert.assertTrue(      "set description class",       Constants.KLASS_GA.equals(setDesc.getClass().getName())     );    Assert.assertTrue(      "set description value", setDesc.value().equals(text)    );    Assert.assertNull("modifySource null", ns.modifySource());    Assert.assertNotNull("modifySubject !null", ns.modifySubject());    Assert.assertNotNull("modifyTime !null", ns.modifyTime());    s.stop();  }