public void compareAndPutAllTest(final RheaKVStore store) {
        final List<CASEntry> entries = new ArrayList<>();
        entries.add(new CASEntry(makeKey("k1"), null, makeValue("v1")));
        entries.add(new CASEntry(makeKey("k2"), null, makeValue("v2")));
        entries.add(new CASEntry(makeKey("k3"), null, makeValue("v3")));

        boolean ret = store.bCompareAndPutAll(entries);
        assertTrue(ret);

        entries.clear();
        entries.add(new CASEntry(makeKey("k1"), makeValue("v1"), makeValue("v11")));
        entries.add(new CASEntry(makeKey("k2"), makeValue("v2"), makeValue("v22")));

        ret = store.bCompareAndPutAll(entries);
        assertTrue(ret);

        entries.clear();
        entries.add(new CASEntry(makeKey("k1"), makeValue("v11"), makeValue("v111")));
        entries.add(new CASEntry(makeKey("k2"), makeValue("v22"), makeValue("v222")));
        entries.add(new CASEntry(makeKey("k3"), makeValue("v33"), makeValue("v333")));

        ret = store.bCompareAndPutAll(entries);
        assertTrue(!ret);

        final Map<ByteArray, byte[]> map = store.bMultiGet(Lists.newArrayList(makeKey("k1"), makeKey("k2"),
            makeKey("k3")));
        assertArrayEquals(makeValue("v11"), map.get(ByteArray.wrap(makeKey("k1"))));
        assertArrayEquals(makeValue("v22"), map.get(ByteArray.wrap(makeKey("k2"))));
        assertArrayEquals(makeValue("v3"), map.get(ByteArray.wrap(makeKey("k3"))));
    }
Test method: {@link RheaKVStore#compareAndPutAll(List)}
jraft-rheakv/rheakv-core/src/test/java/com/alipay/sofa/jraft/rhea/storage/rhea/AbstractRheaKVStoreTest.java