@Override
    public WatcherRemoveCuratorFramework newWatcherRemoveCuratorFramework() {
        class MockWatcherRemoveCuratorFramework extends MockCuratorFramework implements WatcherRemoveCuratorFramework {

            public MockWatcherRemoveCuratorFramework(boolean stableOrdering, boolean shouldTimeoutOnEnter) {
                super(stableOrdering, shouldTimeoutOnEnter);
            }

            @Override
            public void removeWatchers() {}

            @Override
            public ZookeeperCompatibility getZookeeperCompatibility() {
                return ZookeeperCompatibility.LATEST;
            }
        }
        return new MockWatcherRemoveCuratorFramework(true, false);
    }
Listeners to changes to a particular path
zkfacade/src/main/java/com/yahoo/vespa/curator/mock/MockCuratorFramework.java