@Test
public void shouldNotLockWhenWholeLockIsTaken() {

  redisTemplate.opsForValue().set("locks:1", "def");
  redisTemplate.opsForValue().set("locks:2", "ghi");
  final var token = lock.acquire(Arrays.asList("1", "2"), "locks", 1000);
  assertThat(token).isNull();
  assertThat(redisTemplate.opsForValue().get("locks:1")).isEqualTo("def");
  assertThat(redisTemplate.opsForValue().get("locks:2")).isEqualTo("ghi");
}