@Override
    public boolean isLeader() {
        return isLeader;
    }
@Test
    void notLeaderWhenLockCanNeverBeAcquired() {
        assertThat(leaderElectionService.isLeader()).isFalse();

        leaderElectionService.startAsync().awaitRunning();

        // wait until the service executed the run loop at least 2 times
        verify(lockService, timeout(10_000).atLeast(2)).lock(any(), isNull());

        assertThat(leaderElectionService.isLeader()).isFalse();
    }