@After
  public void tearDown() throws Exception {
    try {
      if (port >= 0) {
    System.out.println("Stopping MetaStore Server on port " + port);
        stopMetastoreServer(port);
        port = -1;
      }
      // Clear the SSL system properties before each test.
      System.clearProperty(ObjectStore.TRUSTSTORE_PATH_KEY);
      System.clearProperty(ObjectStore.TRUSTSTORE_PASSWORD_KEY);
      System.clearProperty(ObjectStore.TRUSTSTORE_TYPE_KEY);
      //
      IcebergTestHelper.invalidatePoolCache();
    } finally {
      catalog = null;
      nsCatalog = null;
      catalogPort = -1;
      conf = null;
    }
  }
@param apis a list of api calls
@return the map of HMSCatalog route counter metrics keyed by their names
standalone-metastore/metastore-rest-catalog/src/test/java/org/apache/iceberg/rest/HMSTestBase.java