Subject subj0 = SubjectFactory.getSubject(Constants.rootI, Constants.rootT);
Subject subj0 = null; try { subj0 = SubjectFactory.getSubject(Constants.rootI, Constants.rootT); } catch (SubjectNotFoundException e1) {  e1.printStackTrace(); }
  public void testBug352Access() {    Subject subj0 = SubjectFactory.getSubject(Constants.rootI, Constants.rootT);    GrouperSession s0 = GrouperSession.start(subj0);    Subject subj1 = SubjectFactory.getSubject(Constants.mem0I, Constants.mem0T);    GrouperSession s1 = GrouperSession.start(subj1);    // Create ns0    GrouperStem ns0 = GrouperStem.create(                         s0, Constants.ns0s, Constants.ns0e                       );    // Create gA    GrouperGroup gA  = GrouperGroup.create(                         s0, Constants.gAs, Constants.gAe                       );    // Load gA as subj1    GrouperGroup gAA = GrouperGroup.load(                         s1, Constants.gAs, Constants.gAe                       );    // Set description as root    String text0 = "test description";    try {      gA.attribute("description", text0);      Assert.assertTrue("add description to gA", true);    } catch (RuntimeException e) {      Assert.fail("add description to gA failed");    }    GrouperAttribute desc0 = gA.attribute("description");    Assert.assertNotNull("gA description !null", desc0);    Assert.assertTrue(      "gA description value", desc0.value().equals(text0)    );    // Fail to set description as !root    String text1 = "a longer test description";    try {      gAA.attribute("description", text1);      Assert.fail("add description to gAA should have failed");    } catch (RuntimeException e) {      Assert.assertTrue("add description to gAA should fail", true);    }    GrouperAttribute desc1 = gAA.attribute("description");    Assert.assertNotNull("gAA description !null", desc1);    Assert.assertTrue(      "gAA description value", desc1.value().equals("")    );    // Grant ADMIN to !root    GrouperMember m = GrouperMember.load(                        s0, Constants.mem0I, Constants.mem0T                      );    Assert.assertTrue(      "grant ADMIN to m on gAA",      s0.access().grant(s0, gAA, m, Grouper.PRIV_ADMIN)    );    // Set description as !root    try {      gAA.attribute("description", text1);      Assert.assertTrue("add description to gAA", true);    } catch (RuntimeException e) {      Assert.fail("add description to gAA should not have failed");    }    GrouperAttribute desc2 = gAA.attribute("description");    Assert.assertNotNull("gAA description !null", desc2);    Assert.assertTrue(      "gAA description value", desc2.value().equals(text1)    );    s0.stop();    s1.stop();  }