@Override
    public void lock() {
        try {
            lockInterruptibly(-1, null);
        } catch (InterruptedException e) {
            throw new IllegalStateException();
        }
    }
@Test
    public void testInCluster() throws Exception {
        testInCluster(client -> {
            Config config = client.getConfig();
            config.setSlavesSyncTimeout(3000);

            RedissonClient redisson = Redisson.create(config);
            RLock lock = redisson.getSpinLock("myLock");
            lock.lock();
            assertThat(lock.isLocked()).isTrue();
            lock.unlock();
            assertThat(lock.isLocked()).isFalse();
            redisson.shutdown();
        });
    }