@@ -0,0 +1,1671 @@
+package com.github.phantomthief.jedis;%0A%0Aimport static org.junit.jupiter.api.Assertions.assertFalse;%0Aimport static org.junit.jupiter.api.Assertions.assertTrue;%0A%0Aimport java.io.IOException;%0Aimport java.util.Arrays;%0Aimport java.util.BitSet;%0A%0Aimport org.junit.jupiter.api.AfterAll;%0Aimport org.junit.jupiter.api.BeforeAll;%0Aimport org.junit.jupiter.api.Disabled;%0Aimport org.junit.jupiter.api.Test;%0A%0Aimport com.carrotsearch.hppc.IntSet;%0Aimport com.github.fppt.jedismock.RedisServer;%0A%0Aimport redis.clients.jedis.Jedis;%0Aimport redis.clients.jedis.JedisPool;%0A%0A/**%0A * @author w.vela%0A * Created on 2020-06-09.%0A */%0A@Disabled%0Aclass JedisUtilsTest %7B%0A%0A    private static RedisServer server = null;%0A%0A    @BeforeAll%0A    static void beforeAll() throws IOException %7B%0A        server = RedisServer.newRedisServer();  // bind to a random port%0A        server.start();%0A    %7D%0A%0A    @AfterAll%0A    static void afterAll() %7B%0A        server.stop();%0A    %7D%0A%0A    @Test%0A    void test() %7B%0A        // %E8%BF%99%E4%B8%AA%E6%B5%8B%E8%AF%95%E7%94%A8%E4%BE%8B%E5%8F%AA%E6%9C%89%E7%9C%9F%E5%AE%9Eredis-server%E8%83%BD%E9%80%9A%E8%BF%87%0A        try (JedisPool jedisPool = new JedisPool(server.getHost(), server.getBindPort())) %7B%0A            JedisHelper%3CJedis%3E helper = JedisHelper.newBuilder(() -%3E jedisPool)%0A                    .build();%0A            helper.get().setbit(%22test%22, 100, true);%0A            byte%5B%5D bytes = helper.getBinary().get(%22test%22.getBytes());%0A            System.out.println(Arrays.toString(bytes));%0A            BitSet bitSet = JedisUtils.toBitSet(bytes);%0A            assertFalse(bitSet.get(0));%0A            assertTrue(bitSet.get(100));%0A%0A            IntSet intSet = JedisUtils.toIntSet(bytes);%0A            assertFalse(intSet.contains(0));%0A            assertTrue(intSet.contains(100));%0A        %7D%0A    %7D%0A%7D

add shard bit test case.