@Override
    public void register(final String key, final String value) {
        String seqPath = key + "/seq_";
        this.createOrUpdate(seqPath, value, CreateMode.EPHEMERAL_SEQUENTIAL);
    }
@Test
    void registerTest() throws Exception {
        assertThrows(ShenyuException.class, () ->
                zookeeperDiscoveryServiceUnderTest.register("/test", "hello"));
        CreateBuilder createBuilder = mock(CreateBuilder.class);
        when(curatorFramework.create()).thenReturn(createBuilder);
        CreateBuilder2 createBuilder2 = mock(CreateBuilder2.class);
        when(createBuilder.orSetData()).thenReturn(createBuilder2);
        ProtectACLCreateModeStatPathAndBytesable protectACLCreateModeStatPathAndBytesable = mock(ProtectACLCreateModeStatPathAndBytesable.class);
        when(createBuilder2.creatingParentsIfNeeded()).thenReturn(protectACLCreateModeStatPathAndBytesable);
        ACLBackgroundPathAndBytesable pathAndBytesable = mock(ACLBackgroundPathAndBytesable.class);
        when(protectACLCreateModeStatPathAndBytesable.withMode(any())).thenReturn(pathAndBytesable);
        when(pathAndBytesable.forPath(anyString(), any(byte[].class))).thenReturn(null);
        zookeeperDiscoveryServiceUnderTest.register("/test", "hello");
    }