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