@Override
    public String toString() {
        return String.format(
                "%s{leaderLatchPath='%s'}", getClass().getSimpleName(), leaderLatchPath);
    }
@Test
    void testToStringContainingLeaderLatchPath() throws Exception {
        new Context() {
            {
                runTest(
                        () ->
                                assertThat(leaderElectionDriver.toString())
                                        .as(
                                                "toString() should contain the leader latch path for human-readable representation of the driver instance.")
                                        .contains(
                                                ZooKeeperUtils.generateLeaderLatchPath(
                                                        curatorFramework
                                                                .asCuratorFramework()
                                                                .getNamespace())));
            }
        };
    }