g.addMember(SubjectHelper.SUBJ0, f);
GroupHelper.addMember(g, SubjectHelper.SUBJ0, f);
  public void testFailToDeleteUsedCustomList() {    GrouperSession  s     = null;    String          type  = "customType.FTDUCL";    String          name  = "customField.FTTDUCL";    FieldType       ft    = FieldType.LIST;     Privilege       read  = AccessPrivilege.VIEW;    Privilege       write = AccessPrivilege.UPDATE;    boolean         req   = false;    try {      s = SessionHelper.getRootSession();      GroupType custom = GroupType.createType(s, type);      Field f = custom.addField(s, name, ft, read, write, req);      Assert.assertTrue("added LIST field", true);      Stem  root  = StemFinder.findRootStem(s);      Stem  ns    = root.addChildStem("ns", "ns");      Group g     = ns.addChildGroup("g", "g");      g.addType(custom);      f = FieldFinder.find(name);      g.addMember(SubjectHelper.SUBJ0, f);      try {        custom.deleteField(s, name);          Assert.fail("deleted in-use LIST");      }      catch (Exception e) {        Assert.assertTrue("could not delete in-use LIST", true);      }    }    catch (Exception e) {      Assert.fail("unexpected exception: " + e.getMessage());    }    finally {      SessionHelper.stop(s);    }  } // public void testFailToDeleteUsedCustomList()