public static String getMinInstantTime(String fileName) {
    Matcher fileMatcher = ARCHIVE_FILE_PATTERN.matcher(fileName);
    if (fileMatcher.matches()) {
      return fileMatcher.group(1);
    } else {
      throw new HoodieException("Unexpected archival file name: " + fileName);
    }
  }
@Test
  void testParseMinInstantTime() {
    String fileName = "001_002_0.parquet";
    String minInstantTime = LSMTimeline.getMinInstantTime(fileName);
    assertThat(minInstantTime, is("001"));
    assertThrows(HoodieException.class, () -> LSMTimeline.getMinInstantTime("invalid_file_name.parquet"));
  }