@Test
public void testLockReentry() throws InterruptedException {

    redisson.getKeys().flushall();
    String lockId = "abcd-1234";
    boolean isLocked = redisLock.acquireLock(lockId, 1000, 60000, TimeUnit.MILLISECONDS);
    assertTrue(isLocked);
    Thread.sleep(1000);
    // get the lock back
    isLocked = redisLock.acquireLock(lockId, 1000, 1000, TimeUnit.MILLISECONDS);
    assertTrue(isLocked);
    RLock lock = redisson.getLock(lockId);
    assertTrue(isLocked);
}