CuratorTransactionFinal tx =
ZooKeeperUtils.buildAtomicRecursiveDelete(mZKClient, mZKClient.inTransaction(), "/foo");
mZKClient.delete().forPath(path);
try {
tx.commit(); // should throw
} catch (NoNodeException nne) {
// expected
}
Assert.assertNotNull(mZKClient.checkExists().forPath("/foo"));
}