ZkClient implements  AutoCloseable { public boolean createIfNotExist(String path, String data){ try { if (client.checkExists().forPath(path) == null) { client.create().creatingParentsIfNeeded().forPath(path,data.getBytes()); } }catch(Exception e){ return false; } return true; } ZkClient(CuratorFramework client, boolean isServer);  ZkClient(String serverSet, boolean isServer); void rebuild(); void electLeader(String ELECTION_PATH); boolean isLeader(); void start(); void stop(); void set(String path, String data); String get(String path); void set(String path, String data, boolean compress); String get(String path, boolean compress); List<String> list(String path); List<String> getChildren(String path); boolean createIfNotExist(String path, String data); boolean delete(String path); boolean createLockPath(String path, String child, String data); boolean deleteLockPath(String path, String child); CuratorFramework getClient(); String getConnectionString(); @Override void close();  }
@Test public void createIfNotExist() throws Exception { }