@Override
        public AtomicValue<Long> trySet(Long longval) {
            value = new MockLongValue(longval);
            return value;
        }
A lock which works inside a single vm
zkfacade/src/main/java/com/yahoo/vespa/curator/mock/MockCuratorFramework.java