@Override
    @NonNull
    public Optional<SimpleLock> lock(@NonNull LockConfiguration lockConfiguration) {
        String sessionId = createSession(lockConfiguration);
        return tryLock(sessionId, lockConfiguration);
    }
@Test
    void doesNotLockIfLockIsAlreadyObtained() {
        mockLock(eq("naruto-leader"), false);

        Optional<SimpleLock> lock = lockProvider.lock(lockConfig("naruto", SMALL_MIN_TTL, SMALL_MIN_TTL.dividedBy(2)));
        assertThat(lock).isEmpty();
    }