public InterProcessMutex lock(long seckillId) {
        try {
            String rootLockPath = "/goodskill";
            InterProcessMutex interProcessMutex = new InterProcessMutex(client, rootLockPath + "/" + seckillId);
            boolean acquire = interProcessMutex.acquire(1000L, TimeUnit.MILLISECONDS);
            if (acquire) {
                log.info("成功获取到zk锁,秒杀id{}", seckillId);
            } else {
                log.info("未获取到zk锁,秒杀id{}", seckillId);
            }
            return interProcessMutex;
        } catch (Exception e) {
            log.warn("获取zk锁异常:{}", e.getMessage());
            return null;
        }
    }
@Test
    void lock() throws InterruptedException {
        ExecutorService executorService = Executors.newFixedThreadPool(10);
        int count = 200;
        CountDownLatch countDownLatch = new CountDownLatch(count);
        for (int i = 0; i < count/2; i++) {
            executorService.execute(() -> {
                InterProcessMutex lock = zookeeperLockUtil.lock(10000L);
                if(lock != null) {
                    try {
                        Thread.sleep(10);
                    } catch (InterruptedException e) {
                        e.printStackTrace();
                    }
                    try {
                        lock.release();
                    } catch (Exception e) {
                        throw new RuntimeException(e);
                    }
                    log.debug("计数器当前值{}", countDownLatch.getCount());
                    countDownLatch.countDown();
                }
            });
            executorService.execute(() -> {
                InterProcessMutex lock = zookeeperLockUtil.lock(10001L);
                if(lock != null) {
                    try {
                        Thread.sleep(10);
                    } catch (InterruptedException e) {
                        e.printStackTrace();
                    }
                    try {
                        lock.release();
                    } catch (Exception e) {
                        throw new RuntimeException(e);
                    }
                    log.debug("计数器当前值{}", countDownLatch.getCount());
                    countDownLatch.countDown();
                }
            });
        }
        countDownLatch.await();
        executorService.shutdown();
        assertTrue(countDownLatch.getCount() == 0);
    }