@Test
    public void initFencingTokenTest() throws Exception {
        final Method getNextFencingMethod = MemoryRawKVStore.class.getDeclaredMethod("getNextFencingToken",
            byte[].class);
        getNextFencingMethod.setAccessible(true);
        final List<byte[]> parentKeys = Lists.newArrayList();
        parentKeys.add(null); // startKey == null
        parentKeys.add(BytesUtil.writeUtf8("parent"));
        for (int i = 0; i < 2; i++) {
            final byte[] parentKey = parentKeys.get(i);
            final byte[] childKey = BytesUtil.writeUtf8("child");
            assertEquals(1L, getNextFencingMethod.invoke(this.kvStore, (Object) parentKey));
            assertEquals(2L, getNextFencingMethod.invoke(this.kvStore, (Object) parentKey));
            this.kvStore.initFencingToken(parentKey, childKey);
            assertEquals(3L, getNextFencingMethod.invoke(this.kvStore, (Object) childKey));
            assertEquals(4L, getNextFencingMethod.invoke(this.kvStore, (Object) childKey));
        }
    }
Test method: {@link MemoryRawKVStore#delete(List, KVStoreClosure)}
jraft-rheakv/rheakv-core/src/test/java/com/alipay/sofa/jraft/rhea/storage/memorydb/MemoryKVStoreTest.java