@After
  public void tearDown() throws Exception {
    try {
      client.dropDatabase(DB_NAME, true, true, true);
      try {
        client.close();
      } catch (Exception e) {
        // HIVE-19729: Shallow the exceptions based on the discussion in the Jira
      }
    } finally {
      client = null;
    }
  }
API tests for HMS client's getPartitions methods.
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/client/TestGetPartitions.java