public void testSafeModeNoCache() throws KeeperException, InterruptedException {
String safemodePath = ZookeeperPathConstants.getSafemodePath(DEFAULT);
ZooKeeperLockManager zooKeeperLockManager = new ZooKeeperLockManager(zooKeeper1, safemodePath);
zooKeeperLockManager.lock(DEFAULT);
assertTrue(clusterStatus2.isInSafeMode(false, DEFAULT));
zooKeeperLockManager.unlock(DEFAULT);
assertFalse(clusterStatus2.isInSafeMode(false, DEFAULT));
}
@Test
public void testSafeModeCache() throws KeeperException, InterruptedException {