@Override
    public boolean hasLeadership(UUID leaderSessionId) {
        synchronized (lock) {
            return this.leaderContender != null && this.sessionID.equals(leaderSessionId);
        }
    }
@Test
    void testHasLeadershipWithoutContender() throws Exception {
        try (final LeaderElection testInstance = new StandaloneLeaderElection(SESSION_ID)) {
            assertThat(testInstance.hasLeadership(SESSION_ID)).isFalse();

            final UUID differentSessionID = UUID.randomUUID();
            assertThat(testInstance.hasLeadership(differentSessionID)).isFalse();
        }
    }