private void compareAndPutTest(RheaKVStore store) {
        byte[] key = makeKey("put_test");
        checkRegion(store, key, 2);
        byte[] value = makeValue("put_test_value");
        store.bPut(key, value);

        byte[] update = makeValue("put_test_update");
        assertTrue(store.bCompareAndPut(key, value, update));
        byte[] newValue = store.bGet(key);
        assertArrayEquals(update, newValue);

        assertFalse(store.bCompareAndPut(key, value, update));
    }
Test method: {@link RheaKVStore#compareAndPut(byte[], byte[], byte[])}
jraft-rheakv/rheakv-core/src/test/java/com/alipay/sofa/jraft/rhea/storage/rhea/AbstractRheaKVStoreTest.java