@Test
    public void rangeSplitTest() {
        final RheaKVStore store = getRandomLeaderStore();
        final long regionId = 1;
        for (int i = 0; i < 20; i++) {
            store.bPut("a" + i, BytesUtil.writeUtf8("split"));
        }
        final CliOptions opts = new CliOptions();
        opts.setTimeoutMs(30000);
        final RheaKVCliService cliService = RheaKVServiceFactory.createAndInitRheaKVCliService(opts);
        final long newRegionId = 101;
        final String groupId = JRaftHelper.getJRaftGroupId("rhea_test", regionId);
        final Configuration conf = JRaftUtils.getConfiguration("127.0.0.1:18181,127.0.0.1:18182,127.0.0.1:18183");
        final Status st = cliService.rangeSplit(regionId, newRegionId, groupId, conf);
        System.err.println("Status:" + st);
        assertTrue(st.isOk());
        final RheaKVStore newStore = getLeaderStore(101);
        newStore.bPut("f_first_key", BytesUtil.writeUtf8("split_ok"));
        assertArrayEquals(BytesUtil.writeUtf8("split_ok"), newStore.bGet("f_first_key"));
    }
Test method: {@link RheaKVStore#getDistributedLock(byte[], long, TimeUnit)}
jraft-rheakv/rheakv-core/src/test/java/com/alipay/sofa/jraft/rhea/storage/rhea/AbstractRheaKVStoreTest.java