@Override
    public void setConf(Configuration arg0) {
      String expected = DummyJdoConnectionUrlHook.newUrl;
      String actual = MetastoreConf.getVar(arg0, MetastoreConf.ConfVars.CONNECT_URL_KEY);

      Assert.assertEquals("The expected URL used by JDO to connect to the metastore: " + expected +
              " did not match the actual value when the Raw Store was initialized: " + actual,
          expected, actual);
    }
TestMetaStoreConnectionUrlHook
Verifies that when an instance of an implementation of RawStore is initialized, the connection
URL has already been updated by any metastore connect URL hooks.
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/TestMetaStoreConnectionUrlHook.java