cluster.start();
try
{
client = CuratorFrameworkFactory.newClient(cluster.getConnectString(), timing.session(), timing.connection(), new RetryOneTime(1));
client.start();
client.sync("/", null);
final AtomicReference<Exception> error = new AtomicReference<Exception>(null);
final AtomicReference<String> lockNode = new AtomicReference<String>(null);
final Semaphore semaphore = new Semaphore(0);
final CountDownLatch lostLatch = new CountDownLatch(1);