public static long timeUnitToMill(String timeStrWithUnit) {
    // If `timeStrWithUnit` doesn't include time unit,
    // `Duration.parse` would fail to parse and throw Exception.
    if (timeStrWithUnit.endsWith("ms")) {
      return Long.parseLong(timeStrWithUnit.substring(0, timeStrWithUnit.length() - 2));
    }
    return Duration.parse("PT" + timeStrWithUnit).toMillis();
  }
@Test
  void testTimeUnitToMill_WithoutUnit_1() {
    assertThrows(DateTimeParseException.class, () -> {
      ZeppelinConfiguration.timeUnitToMill("60000");
    });
  }