public boolean isLeaseExpired() {
        return lockExpiryTime > 0L && Clock.currentTimeMillis() > lockExpiryTime;
    }
@Test
    public void testIsLeaseExpired() throws Exception {
        LockGuard stateLock = LockGuard.NOT_LOCKED;
        assertFalse(stateLock.isLeaseExpired());

        Address endpoint = newAddress();
        stateLock = new LockGuard(endpoint, TXN, TimeUnit.HOURS.toMillis(1));
        assertFalse(stateLock.isLeaseExpired());

        stateLock = new LockGuard(endpoint, TXN, 1);
        final LockGuard finalStateLock = stateLock;
        HazelcastTestSupport.assertTrueEventually(() -> assertTrue(finalStateLock.isLeaseExpired()));
    }