Timing timing = new Timing();
LeaderLatch latch = null;
CuratorFramework client = CuratorFrameworkFactory.newClient(server.getConnectString(), timing.session(), timing.connection(), new RetryOneTime(1));
try
{
client.start();
final AtomicBoolean resetCalled = new AtomicBoolean(false);
final CountDownLatch cancelStartTaskLatch = new CountDownLatch(1);
latch = new LeaderLatch(client, PATH_NAME)
{