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 testAddAttrs() {    Subject subj = SubjectFactory.getSubject(Constants.rootI, Constants.rootT);    GrouperSession s = GrouperSession.start(subj);    // Create ns0    GrouperStem ns = GrouperStem.create(                       s, Constants.ns0s, Constants.ns0e                     );    try {      ns.attribute("displayname", "new displayname");      Assert.fail("add displayname");    } catch (RuntimeException e) {      Assert.assertTrue("add displayname", true);    }    try {      ns.attribute("extension", "new extension");      Assert.fail("add extension");    } catch (RuntimeException e) {      Assert.assertTrue("add extension", true);    }    try {      ns.attribute("name", "new name");      Assert.fail("add name");    } catch (RuntimeException e) {      Assert.assertTrue("add name", true);    }    try {      ns.attribute("stem", "new stem");      Assert.fail("add stem");    } catch (RuntimeException e) {      Assert.assertTrue("add stem", true);    }    s.stop();  }