@Test
public void testDeleteAll() throws Exception {

    startZK(1);
    ZookeeperClient client = createClient(SES_TIMEOUT);
    client.createIfNeeded("/apacheIgnite", null, CreateMode.PERSISTENT);
    client.createIfNeeded("/apacheIgnite/1", null, CreateMode.PERSISTENT);
    client.createIfNeeded("/apacheIgnite/2", null, CreateMode.PERSISTENT);
    client.deleteAll(Arrays.asList("/apacheIgnite/1", "/apacheIgnite/2"), -1);
    assertTrue(client.getChildren("/apacheIgnite").isEmpty());
    client.createIfNeeded("/apacheIgnite/1", null, CreateMode.PERSISTENT);
    client.deleteAll(Collections.singletonList("/apacheIgnite/1"), -1);
    assertTrue(client.getChildren("/apacheIgnite").isEmpty());
}