public static SSLFactory createSSLFactoryAndEnableAutoRenewalWhenUsingFileStores(TlsConfig tlsConfig) {
    return createSSLFactoryAndEnableAutoRenewalWhenUsingFileStores(tlsConfig, () -> false);
  }
@Test
  public void createSSLFactoryAndEnableAutoRenewalWhenUsingFileStoresWithPinotSecureMode()
      throws IOException, URISyntaxException, InterruptedException {
    TlsConfig tlsConfig = createTlsConfig();
    SSLFactory sslFactory =
        RenewableTlsUtils.createSSLFactoryAndEnableAutoRenewalWhenUsingFileStores(tlsConfig, () -> false);
    ensurSslFactoryUseNormalTrustManager(sslFactory);

    updateTlsFilesAndWaitForSslFactoryToBeRenewed();

    ensurSslFactoryUseNormalTrustManager(sslFactory);
  }