@Test
public void testSameHostWithDifferentUser() throws Exception {

    int zkPort1 = NetUtils.getAvailablePort();
    int zkPort2 = NetUtils.getAvailablePort();
    try (TestingServer zkServer1 = new TestingServer(zkPort1, true)) {
        try (TestingServer zkServer2 = new TestingServer(zkPort2, true)) {
            URL url1 = URL.valueOf("zookeeper://us1:pw1@127.0.0.1:" + zkPort1 + "/path1");
            URL url2 = URL.valueOf("zookeeper://us2:pw2@127.0.0.1:" + zkPort1 + "/path2");
            ZookeeperClient client1 = abstractZookeeperTransporter.connect(url1);
            ZookeeperClient client2 = abstractZookeeperTransporter.connect(url2);
            assertThat(client1, not(client2));
        }
    }
}