public String filter(String input) {
      for (Filter filter : regexFilters) {
        input = filter.pattern.matcher(input).replaceAll(filter.replacement);
      }
      return input;
    }
Overwrite the golden file with the generated output
@throws IOException If there is a problem accessing the golden or generated file
itests/util/src/main/java/org/apache/hive/beeline/QFile.java