timing.acquireSemaphore(semaphore, 2);
Assert.assertEquals(discovery.queryForInstances("test").size(), 2);
KillSession.kill(client.getZookeeperClient().getZooKeeper(), server.getConnectString());
server.stop();
server = new TestingServer(server.getPort(), server.getTempDirectory());
closeables.add(server);
timing.acquireSemaphore(semaphore, 2);