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 testAttrsNS0() {    Subject subj = SubjectFactory.getSubject(Constants.rootI, Constants.rootT);    GrouperSession s = GrouperSession.start(subj);    // Create ns0    GrouperStem ns0 = GrouperStem.create(                         s, Constants.ns0s, Constants.ns0e                       );    // Fetch ns0    GrouperStem ns = GrouperStem.load(                        s, Constants.ns0s, Constants.ns0e                      );    GrouperAttribute stem = ns.attribute("stem");    Assert.assertNotNull("stem !null", stem);    Assert.assertTrue(                      "stem class",                       Constants.KLASS_GA.equals(stem.getClass().getName())                      );    Assert.assertTrue("stem value", stem.value().equals(Constants.ns0s));    GrouperAttribute extn = ns.attribute("extension");    Assert.assertNotNull("extn !null", extn);    Assert.assertTrue(                      "extn class",                       Constants.KLASS_GA.equals(extn.getClass().getName())                      );    Assert.assertTrue("extn value", extn.value().equals(Constants.ns0e));    GrouperAttribute name = ns.attribute("name");    Assert.assertNotNull("name !null", name);    Assert.assertTrue(                      "name class",                       Constants.KLASS_GA.equals(name.getClass().getName())                      );    Assert.assertTrue(                      "name value",                       name.value().equals(                         GrouperStem.groupName(                          Constants.ns0s, Constants.ns0e                        )                      )                     );    GrouperAttribute desc = ns.attribute("desc");    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("createSource null", ns.createSource());    Assert.assertNotNull("createSubject null", ns.createSubject());    Assert.assertNotNull("createTime null", ns.createTime());    Assert.assertNull("modifySource null", ns.modifySource());    Assert.assertNull("modifySubject null", ns.modifySubject());    Assert.assertNull("modifyTime null", ns.modifyTime());    s.stop();  }