public void shutdown(boolean cleanupZooKeeperDir) {
        server.shutdown();

        if (cleanupZooKeeperDir) {
            delete(zooKeeperDir);
        }

        factory.shutdown();
    }
This class sets up a zookeeper server, such that we can test fleetcontroller zookeeper parts without stubbing in the client.
clustercontroller-core/src/test/java/com/yahoo/vespa/clustercontroller/core/ZooKeeperTestServer.java