### Question:
ZkClient { public void create(String basePath, Set<String> serviceNames, String addr) { serviceNames.forEach(u -> { URL url = URL.valueOf(u); String path = basePath + url.getPath() + "/tcp@" + addr; try { if (client.checkExists().forPath(path) == null) { client.create().creatingParentsIfNeeded().withMode(CreateMode.EPHEMERAL).forPath(path, url.toParameterString().getBytes()); } } catch (Exception e) { e.printStackTrace(); } }); } private  ZkClient(); static ZkClient ins(); Set<Pair<String, String>> get(String basePath, String serviceName); void create(String basePath, Set<String> serviceNames, String addr); void watch(LinkedBlockingQueue<PathStatus> queue, final String p); void close();  }### Answer:
@Test public void testCreate() throws Exception { ZkClient.ins().create("",new HashSet<>(),""); TimeUnit.HOURS.sleep(1); }