@Override
    public void doUnregister(URL url) {
        try {
            checkDestroyed();
            zkClient.delete(toUrlPath(url));
        } catch (Throwable e) {
            throw new RpcException(
                    "Failed to unregister " + url + " to zookeeper " + getUrl() + ", cause: " + e.getMessage(), e);
        }
    }
@Test
    void testDoUnregisterWithException() {
        Assertions.assertThrows(RpcException.class, () -> {
            URL errorUrl = URL.valueOf("multicast://0.0.0.0/");
            zookeeperRegistry.doUnregister(errorUrl);
        });
    }