### Question:
ZooKeeperPlus extends ZooKeeper { public void ensureCreated(String path, byte[] value) throws InterruptedException, KeeperException { ensureCreated(path, value, DEFAULT_CREATE_MODE); } ZooKeeperPlus(String connectString,
                       int sessionTimeout,
                       Watcher watcher,
                       long sessionId,
                       byte[] sessionPasswd);  ZooKeeperPlus(String connectString, int sessionTimeout, Watcher watcher); long getLong(String path); Long getLongOrNull(String path); String getString(String path); void deleteIfExists(String path); void setOrCreate(String path, int value, CreateMode createMode); void setOrCreate(String path, long value, CreateMode createMode); void setOrCreate(String path, String value, CreateMode createMode); void ensureCreated(String path, byte[] value); void ensureCreated(String path, byte[] value, CreateMode createMode); void deleteNodeRecursively(String path); List<String> getChildrenNotHidden(String path, boolean watch); List<String> getChildrenNotHidden(String path, Watcher watcher); void create(String path, byte[] data, CreateMode createMode); void create(String path, byte[] data); void createLong(String path, long value); void createInt(String path, int value); Integer getIntOrNull(String path); int getInt(String path); void setString(String path, String value); void setInt(String path, int nextVersion);  }### Answer:
@Test public void testIt() throws Exception { final ZooKeeperPlus zk = getZk(); zk.ensureCreated("/", null, CreateMode.PERSISTENT); assertExists("/", zk); zk.ensureCreated("/simple", "1".getBytes(), CreateMode.PERSISTENT); assertExists("/simple", zk); zk.ensureCreated("/simple", "2".getBytes(), CreateMode.PERSISTENT); assertExists("/simple", zk); assertTrue(Arrays.equals(zk.getData("/simple", false, null), "1".getBytes())); zk.ensureCreated("/deeper/file", null, CreateMode.PERSISTENT); assertExists("/deeper/file", zk); assertExists("/deeper", zk); zk.ensureCreated("/simple/even/deeper", "3".getBytes(), CreateMode.PERSISTENT); assertTrue(Arrays.equals(zk.getData("/simple", false, null), "1".getBytes())); }