catch ( KeeperException.ConnectionLossException e )
{
// expected
}
server = new TestingServer(serverPort, serverDir);
Assert.assertNotNull(client.checkExists().forPath(PATH));
server.stop(); // cause the next delete to fail
server = null;
try
{
client.delete().guaranteed().forPath(PATH);
Assert.fail();
}
catch ( KeeperException.ConnectionLossException e )
{
// expected
}
server = new TestingServer(serverPort, serverDir);
final int TRIES = 5;
for ( int i = 0; i < TRIES; ++i )
{
if ( client.checkExists().forPath(PATH) != null )