public long getReportIntervalMs() {
    String intervalString =
        properties.getProperty(
            CONFLUENT_SUPPORT_METRICS_REPORT_INTERVAL_HOURS_CONFIG
        );
    if (intervalString == null || intervalString.isEmpty()) {
      intervalString = CONFLUENT_SUPPORT_METRICS_REPORT_INTERVAL_HOURS_DEFAULT;
    }
    try {
      final long intervalHours = Long.parseLong(intervalString);
      if (intervalHours < 1) {
        throw new ConfigException(
            CONFLUENT_SUPPORT_METRICS_REPORT_INTERVAL_HOURS_CONFIG,
            intervalString,
            "Interval must be >= 1"
        );
      }
      return intervalHours * 60 * 60 * 1000;
    } catch (NumberFormatException e) {
      throw new ConfigException(
          CONFLUENT_SUPPORT_METRICS_REPORT_INTERVAL_HOURS_CONFIG,
          intervalString,
          "Interval is not an integer number"
      );
    }
  }
@Test
  public void testOverrideReportInterval() {
    // Given
    Properties overrideProps = new Properties();
    int reportIntervalHours = 1;
    overrideProps.setProperty(
        BaseSupportConfig.CONFLUENT_SUPPORT_METRICS_REPORT_INTERVAL_HOURS_CONFIG,
        String.valueOf(reportIntervalHours)
    );
    // When
    BaseSupportConfig supportConfig = new TestSupportConfig(overrideProps);

    // Then
    assertEquals((long) reportIntervalHours * 60 * 60 * 1000, supportConfig.getReportIntervalMs());
  }