return new ChronosServerWatcher(properties);
}
@Test
public void testInitZnode() throws IOException, KeeperException {
ChronosServerWatcher chronosServerWatcher = createChronosWatcher(new HostPort("127.0.0.1",
10086));
assertTrue(ZooKeeperUtil.watchAndCheckExists(chronosServerWatcher,
chronosServerWatcher.getBaseZnode()));
assertTrue(ZooKeeperUtil.watchAndCheckExists(chronosServerWatcher,
chronosServerWatcher.getBackupServersZnode()));
assertTrue(ZooKeeperUtil.watchAndCheckExists(chronosServerWatcher,
chronosServerWatcher.getPersistentTimestampZnode()));
chronosServerWatcher.close();
}