private Curator createCurator(CuratorConfig curatorConfig, int juteMaxBuffer)  {
        return new Curator(ConnectionSpec.create(curatorConfig.server(),
                                                 CuratorConfig.Server::hostname,
                                                 CuratorConfig.Server::port,
                                                 curatorConfig.zookeeperLocalhostAffinity()),
                           Optional.empty(),
                           juteMaxBuffer,
                           Curator.DEFAULT_ZK_SESSION_TIMEOUT);
    }
Very simple testing of setting up curator

@author Ulf Lilleengen
zkfacade/src/test/java/com/yahoo/vespa/curator/CuratorTest.java