private String[] getUpdateArgs(String alias, String credential, String providerPath) {
    List<String> args = new ArrayList<>();

    args.add(CREATE_VERB);
    args.add(alias);
    args.add("-value");
    args.add(credential);
    args.add("-provider");
    args.add(providerPath);
    args.add("-f"); /* overwrite */

    return args.toArray(new String[args.size()]);
  }
Constructs the create arguments with overwrite.

@param alias
@param credential
@param providerPath
@return
ambari-server/src/test/java/org/apache/ambari/server/credentialapi/CredentialUtilTest.java