@Override
    public boolean tryLock(final GlobalLockDefinition lockDefinition, final long timeoutMillis) {
        return repository.getDistributedLockHolder().getDistributedLock(lockDefinition.getLockKey()).tryLock(timeoutMillis);
    }
@Test
    void assertTryLock() {
        when(repository.getDistributedLockHolder().getDistributedLock("/lock/exclusive/locks/foo_lock").tryLock(1000L)).thenReturn(true);
        GlobalLockDefinition lockDefinition = new GlobalLockDefinition("foo_lock");
        assertTrue(new GlobalLockPersistService(repository).tryLock(lockDefinition, 1000L));
    }