@Test
  public void testDistributedLockWithDifferentConnection() throws Exception {
    ClusterMapConfig clusterMapConfig = new ClusterMapConfig(new VerifiableProperties(props));
    String zkConnectionStr = getDefaultZkConnectStr(clusterMapConfig);
    DistributedLock lock1 =
        getDistributedLockWithDedicatedZkClient("Test", clusterMapConfig.clusterMapHostName + "1", "for testing",
            zkConnectionStr);
    // use different user id
    DistributedLock lock2 =
        getDistributedLockWithDedicatedZkClient("Test", clusterMapConfig.clusterMapHostName + "2", "for testing",
            zkConnectionStr);
    testTwoDistributedLocks(lock1, lock2);
  }
Test distributed lock with different zookeeper connections
@throws Exception
ambry-clustermap/src/test/java/com/github/ambry/clustermap/HelixParticipantTest.java