@Test
public void testCheckExists() {

    CuratorZookeeperClient curatorClient = new CuratorZookeeperClient(URL.valueOf("zookeeper://127.0.0.1:" + this.zkServerPort + "/com.alibaba.dubbo.registry.RegistryService"));
    String path = "/dubbo/com.alibaba.dubbo.demo.DemoService/providers";
    curatorClient.create(path, false);
    Assert.assertThat(curatorClient.checkExists(path), is(true));
    Assert.assertThat(curatorClient.checkExists(path + "/noneexits"), is(false));
}