public static ParameterTool paramsFromGenericOptionsParser(String[] args) throws IOException {
        Option[] options = new GenericOptionsParser(args).getCommandLine().getOptions();
        Map<String, String> map = new HashMap<String, String>();
        for (Option option : options) {
            String[] split = option.getValue().split("=");
            map.put(split[0], split[1]);
        }
        return ParameterTool.fromMap(map);
    }
@Test
    void testParamsFromGenericOptionsParser() throws IOException {
        ParameterTool parameter =
                HadoopUtils.paramsFromGenericOptionsParser(
                        new String[] {"-D", "input=myInput", "-DexpectedCount=15"});
        validate(parameter);
    }