custom.addField(s, name, ft, read, write, req);
Field f = custom.addField(s, name, ft, read, write, req);
  public void testDeleteUnusedCustomAttribute() {    GrouperSession  s     = null;    String          type  = "customType.TDUCA";    String          name  = "customField.TDUCA";    FieldType       ft    = FieldType.ATTRIBUTE;     Privilege       read  = AccessPrivilege.VIEW;    Privilege       write = AccessPrivilege.UPDATE;    boolean         req   = false;    try {      s = SessionHelper.getRootSession();      GroupType custom = GroupType.createType(s, type);      custom.addField(s, name, ft, read, write, req);      Assert.assertTrue("added ATTRIBUTE field", true);      Field f = FieldFinder.find(name);      try {        custom.deleteField(s, name);          Assert.assertTrue("deleted unused ATTRIBUTE", true);        Set fields = custom.getFields();        if (fields.contains(f)) {          Assert.fail("deleted ATTRIBUTE still exists");        }       }      catch (Exception e) {        Assert.fail("could not delete ATTRIBUTE: " + e.getMessage());      }    }    catch (Exception e) {      Assert.fail("unexpected exception: " + e.getMessage());    }    finally {      SessionHelper.stop(s);    }  } // public void testDeleteUnusedCustomAttribute() 