*/
@Test
public void testAtomicRecusiveDeleteWithConcurrentNodeDeletion() throws Exception {
final String path = "/foo/bar/baz/faz/fooz";
mZKClient.create().creatingParentsIfNeeded().forPath(path);
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"));
}