@BeforeAll
    public static void setup() throws Exception {
        FunctionUtils.doAndRetry(List.of(KeeperException.ConnectionLossException.class), context -> {
            val curator = CuratorFrameworkFactory.newClient("localhost:2181",
                5000, 5000, new RetryNTimes(2, 100));
            curator.start();
            val path = "/config/cas/cas/server/name";

            val zk = curator.getZookeeperClient().getZooKeeper();
            if (zk.exists(path, false) != null) {
                curator.delete().forPath(path);
            }
            curator
                .create()
                .creatingParentContainersIfNeeded()
                .withMode(CreateMode.PERSISTENT)
                .withACL(ZooDefs.Ids.OPEN_ACL_UNSAFE)
                .forPath(path, "apereocas".getBytes(StandardCharsets.UTF_8));
            curator.close();
            return null;
        });
    }
This is {@link ZooKeeperCloudConfigBootstrapConfigurationTests}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-configuration-cloud-zookeeper/src/test/java/org/apereo/cas/zookeeper/ZooKeeperCloudConfigBootstrapConfigurationTests.java