@Override
        public void reconfigure(String connectionSpec, String servers) throws ReconfigException {
            if (++attempts < failures)
                throw new ReconfigException("Reconfig failed");
            this.connectionSpec = connectionSpec;
            this.servers = servers;
            this.reconfigurations++;
        }
Tests dynamic reconfiguration of zookeeper cluster.

@author hmusum
zookeeper-server/zookeeper-server-common/src/test/java/com/yahoo/vespa/zookeeper/ReconfigurerTest.java