T.ok("stem (nsB) not created during update");
T.fail("FIXME 20060922 BUG found stem (nsB) that wasn't manually created");
  public void testFullExportToStringAndUpdateOnly() {    LOG.info("testFullExportToStringAndUpdateOnly");    try {      // Export - Setup      R       r     = R.populateRegistry(2, 2, 2);      Group   gAA   = r.getGroup("a", "a");      Group   gAB   = r.getGroup("a", "b");      Group   gBA   = r.getGroup("b", "a");      Group   gBB   = r.getGroup("b", "b");      Subject subjA = r.getSubject("a");      Subject subjB = r.getSubject("b");      gAA.addMember(  subjA                                 );      gAB.addMember(  subjB                                 );      gBA.addMember(  gAA.toSubject()                       );      gBB.addCompositeMember( CompositeType.UNION, gAA, gAB );      r.rs.stop();      // Export      GrouperSession  s         = GrouperSession.start( SubjectFinder.findRootSubject() );      Writer          w         = new StringWriter();      XmlExporter     exporter  = new XmlExporter(s, new Properties());      exporter.export(w);      String          xml       = w.toString();      s.stop();      // Reset      RegistryReset.reset();      // Install Subjects and partial registry      r     = r.populateRegistry(1, 2, 2);      subjA = r.getSubject("a");      subjB = r.getSubject("b");      r.rs.stop();      // Import      s = GrouperSession.start( SubjectFinder.findRootSubject() );      XmlImporter     importer  = new XmlImporter(s, new Properties());      importer.update( XmlReader.getDocumentFromString(xml) );      s.stop();      // Import - Verify      s = GrouperSession.start( SubjectFinder.findRootSubject() );      Stem            ns  = StemFinder.findByName(  s, "i2"                 );        Assert.assertTrue(  "found ns"  , ns != null  );      Stem            nsA = StemFinder.findByName(  s, ns.getName() + ":a"  );      Assert.assertTrue(  "found nsA" , nsA != null );      try {        StemFinder.findByName(s, ns.getName() + ":b");        T.fail("found stem (nsB) that wasn't manually created");      }      catch (StemNotFoundException eGNF) {        T.ok("stem (nsB) not created during update");      }      gAA = GroupFinder.findByName(s, nsA.getName() + ":a");      Assert.assertTrue(  "found gAA" , gAA != null );      gAB = GroupFinder.findByName(s, nsA.getName() + ":b");      Assert.assertTrue(  "found gAB" , gAB != null );      Assert.assertFalse( "FIXME 20060921 BUG gAA hasMember subjA", gAA.hasMember(subjA) );      Assert.assertFalse( "FIXME 20060921 BUG gAB hasMember subjB", gAB.hasMember(subjB) );      s.stop();    }    catch (Exception e) {      T.e(e);    }  } // public void testFullExportToStringAndUpdateOnly()