@Test
public void shouldExpire() throws InterruptedException {

  lock.acquire(Collections.singletonList("1"), "locks", 100);
  Thread.sleep(100);
  assertThat(redisTemplate.opsForValue().get("locks:1")).isNull();
}