lock.acquire(10, TimeUnit.SECONDS);
Assert.assertTrue(lock.isAcquiredInThisProcess());
// Kill the session, check that lock node still exists
KillSession.kill(client.getZookeeperClient().getZooKeeper(), server.getConnectString());
Assert.assertNotNull(client.checkExists().forPath(LOCK_PATH));
// Release the lock and verify that the actual lock node created no longer exists
String actualLockPath = lock.getLockPath();
lock.release();
Assert.assertNull(client.checkExists().forPath(actualLockPath));