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 testQueryCreatedBeforeNow() {    Subject subj = SubjectFactory.getSubject(Constants.rootI, Constants.rootT);    GrouperSession s = GrouperSession.start(subj);    Assert.assertNotNull(s);    // Create ns0    GrouperStem ns0 = GrouperStem.create(                         s, Constants.ns0s, Constants.ns0e                       );    // Create gA    GrouperGroup gA = GrouperGroup.create(                         s, Constants.gBs, Constants.gAe                       );    // Create gB    GrouperGroup gB = GrouperGroup.create(                         s, Constants.gBs, Constants.gBe                       );    // Create gC    GrouperGroup gC = GrouperGroup.create(                         s, Constants.gCs, Constants.gCe                       );    try {      gA.listAddVal(gC.toMember());    } catch (RuntimeException e) {      Assert.fail("failed to add gC -> gA: " + e);    }    // Create query object    GrouperQuery q = new GrouperQuery(s);    // We want created before now    try {      Thread.sleep(500);      Assert.assertTrue( q.createdBefore( new java.util.Date() ) );      List vals = q.query();      Assert.assertNotNull(vals);      Assert.assertTrue( vals.size() == 1 );    } catch (GrouperException e) {      Assert.fail("Exception: createdBefore:NOW");    } catch (InterruptedException e) {      Assert.fail("Failed to sleep");    }    s.stop();  }