@Test
  public void testDeprecatedConfigIsOverwritten() {
    // Different from the values in the safe config
    MetastoreConf.setVar(conf, MetastoreConf.ConfVars.DBACCESS_SSL_PROPS,
        ObjectStore.TRUSTSTORE_PATH_KEY + "=/tmp/truststore.p12," + ObjectStore.TRUSTSTORE_PASSWORD_KEY + "=pwd," +
            ObjectStore.TRUSTSTORE_TYPE_KEY + "=pkcs12");

    // Safe config
    setAndCheckSSLProperties(true, "/tmp/truststore.jks", "password", "jks");
  }
Test that the deprecated property {@link MetastoreConf.ConfVars#DBACCESS_SSL_PROPS} is overwritten by the
MetastoreConf.ConfVars#DBACCESS_SSL_* properties if both are set.

This is not an ideal scenario. It is highly recommend to only set the MetastoreConf#ConfVars.DBACCESS_SSL_* properties.
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/TestObjectStore.java