static String headerLine(CSVFormat csvFormat) {
    return String.join(String.valueOf(csvFormat.getDelimiter()), csvFormat.getHeader());
  }
@Test
  public void givenHeaderComment_isNoop() {
    CSVFormat csvFormat = csvFormat().withHeaderComments("abc", "def", "xyz");
    PCollection<String> input =
        pipeline.apply(Create.of(headerLine(csvFormat), "a,1,1.1", "b,2,2.2", "c,3,3.3"));

    CsvIOStringToCsvRecord underTest = new CsvIOStringToCsvRecord(csvFormat);
    CsvIOParseResult<List<String>> result = input.apply(underTest);
    PAssert.that(result.getOutput())
        .containsInAnyOrder(
            Arrays.asList(
                Arrays.asList("a", "1", "1.1"),
                Arrays.asList("b", "2", "2.2"),
                Arrays.asList("c", "3", "3.3")));
    PAssert.that(result.getErrors()).empty();

    pipeline.run();
  }