public static String createRunId() {
    return String.format(
        "%s-%s",
        DateTimeFormatter.ofPattern("yyyyMMdd").withZone(ZoneId.of("UTC")).format(Instant.now()),
        // by default some templates replace "dd" in the output paths with a day of the month, since
        // this id is used as a part of output paths replace "dd" with an arbitrary number to avoid
        // confusion and potential flaky tests
        UUID.randomUUID().toString().replace("dd", "99"));
  }
@Test
  public void testCreateTestDirName() {
    assertThat(ArtifactUtils.createRunId()).matches(TEST_DIR_REGEX);
  }