@Test
public void validateCliEnvArgumentSuccess() throws ParseException
{

    ArgumentParser argParser = new ArgumentParser("test");
    Option passwordOpt = argParser.addArgument("w", "password", true, "The password used for HTTPS client authentication.", false);
    Option enableEnvVariablesOpt = argParser.addArgument("E", "enableEnvVariables", true,
        "The enableEnvVariables used for HTTPS client authentication through environment provided variable.", false);
    // CLI password only
    String[] argumentsWithCliOpt = {"-w", "cliPassword"};
    argParser.parseArguments(argumentsWithCliOpt);
    ToolsArgumentHelper.validateCliEnvArgument(argParser, passwordOpt, enableEnvVariablesOpt);
    // enableEnvVariables true
    environmentVariables.set("HERD_PASSWORD", "envPassword");
    String[] argumentsWithEnableVarsOpt = {"--enableEnvVariables", "true"};
    argParser.parseArguments(argumentsWithEnableVarsOpt);
    ToolsArgumentHelper.validateCliEnvArgument(argParser, passwordOpt, enableEnvVariablesOpt);
    environmentVariables.clear("HERD_PASSWORD");
    // CLI password and enableEnvVariables true
    String[] argumentsWithCliAndEnableVarsOpt = {"-w", "cliPassword", "--enableEnvVariables", "true"};
    argParser.parseArguments(argumentsWithCliAndEnableVarsOpt);
    ToolsArgumentHelper.validateCliEnvArgument(argParser, passwordOpt, enableEnvVariablesOpt);
}