@Override
      protected Object getSqlResult(ObjectStore.GetHelper<Object> ctx) throws MetaException {
        // drop the partitions with SQL alone
        try (AutoCloseable c = deadline()) {
          objectStore.dropPartitionsInternal(ctx.catName, ctx.dbName, ctx.tblName, partNames, true,
              false);
          Assert.assertEquals(0, objectStore.getPartitionCount());
        } catch (Exception e) {
          throw new MetaException(e.getMessage());
        }
        throw new MetaException("Throwing exception in direct SQL to test Savepoint");
      }
Helper method for setting and checking the SSL configuration parameters.
@param useSSL whether or not SSL is enabled
@param trustStorePath truststore path, corresponding to the value for {@link MetastoreConf.ConfVars#DBACCESS_SSL_TRUSTSTORE_PATH}
@param trustStorePassword truststore password, corresponding to the value for {@link MetastoreConf.ConfVars#DBACCESS_SSL_TRUSTSTORE_PASSWORD}
@param trustStoreType truststore type, corresponding to the value for {@link MetastoreConf.ConfVars#DBACCESS_SSL_TRUSTSTORE_TYPE}
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/TestObjectStore.java