private void startReplicationTargetMetaStoreIfRequired() throws Exception {
    if (!isReplicationTargetHCatRunning) {
      HiveConf conf = new HiveConf();
      conf.set("javax.jdo.option.ConnectionURL", hcatConf.get("javax.jdo.option.ConnectionURL")
        .replace("metastore", "target_metastore"));
      replicationTargetHCatPort = MetaStoreTestUtils.startMetaStoreWithRetry(conf);
      replicationTargetHCatConf = new HiveConf(hcatConf);
      replicationTargetHCatConf.setVar(HiveConf.ConfVars.METASTORE_URIS,
                                       "thrift://localhost:" + replicationTargetHCatPort);
      isReplicationTargetHCatRunning = true;
    }
  }
Verifies that an inner map is present inside an outer map, with
all values being equal.
hcatalog/webhcat/java-client/src/test/java/org/apache/hive/hcatalog/api/TestHCatClient.java