public SlotZnode call() throws Exception {
          syncThreadStart(cdlIn, cdlOut);
          int id = System.identityHashCode(node);
          LOG.info("Starting the node " + id + " from task #" + ix);
          boolean result = node.start(30, TimeUnit.SECONDS);
          LOG.info((result ? "Started" : "Failed to start") + " the node from task #" + ix);
          return result ? node : null;
        }
See SlotZNode; some tests (and the setup) are c/p-ed or modified from Curator.
llap-client/src/test/org/apache/hadoop/hive/llap/registry/impl/TestSlotZnode.java