private void checkSSLProperty(boolean useSSL, String key, String value) {
    if (useSSL && !value.isEmpty()) {
      Assert.assertEquals(value, System.getProperty(key));
    } else {
      Assert.assertNull(System.getProperty(key));
    }
  }
Helper method to check whether the Java system properties were set correctly in {@link ObjectStore#configureSSL(Configuration)}
@param useSSL whether or not SSL is enabled
@param key Java system property key
@param value Java system property value indicated by the key
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/TestObjectStore.java