@Test
public void shouldRelease() {

  mongoTemplate.insert(new LockDocument("1", LocalDateTime.now().plusMinutes(1), "abc"), "locks");
  final var released = lock.release(Collections.singletonList("1"), "locks", "abc");
  assertThat(released).isTrue();
  assertThat(mongoTemplate.findById("1", LockDocument.class, "locks")).isNull();
}