public void testRetry() throws Exception
{
final int MAX_RETRIES = 3;
final int serverPort = server.getPort();
final CuratorFramework client = CuratorFrameworkFactory.newClient(server.getConnectString(), 1000, 1000, new RetryOneTime(10));
client.start();
try
{
final AtomicInteger retries = new AtomicInteger(0);
final Semaphore semaphore = new Semaphore(0);