    @Test
    public void  refresh_provider_statusTest(){

        ConfigManager.getInstance().put(ConfigManager.KEY_ZKSTR,server.getConnectString());

        ZkHelper zkHelper = ZkInstanceUtil.getInstance();
        zkHelper.addPersistent("/root/data/a/data","{\"a\":1}");
        zkHelper.addPersistent("/root/data/b/data","{\"a\":2}");
        zkHelper.addPersistent("/root/data/c/data","{\"a\":3}");


        String path = "/root/data";
        String version = "9999";
        String nodeData = "abc123456";
        byte[] dataByte = null;
        try {
            byte[] versionBytes = version.getBytes(Constants.DEFAULT_CHARSET);
            byte[] pre = ByteUtil.intToByteArray(versionBytes.length);
            dataByte = ByteUtil.byteMerge(pre, versionBytes);
            dataByte = ByteUtil.byteMerge(dataByte, nodeData.getBytes());
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }

        zkHelper.addOrUpdatePersistentNode(path, dataByte);

        CynosureController cynosureController = new CynosureController();
        HttpContext context = new HttpContext(UUID.randomUUID().toString());
        Map<String, String> params = new HashMap<>();
        params.put("path","/root");
        context.Request.setParams(params);
        ActionResult result = null;
        result = cynosureController.refresh_provider(context);
        Assert.assertNotNull(result.getData());
        byte[] data = result.getData();
        String str = null;
        try {
            str = new String(data, Constants.DEFAULT_CHARSET);
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        JsonResult jsonResult = JacksonUtils.toObject(str,JsonResult.class);
        ArrayList list = (ArrayList) jsonResult.getData().get("pathList");
        Assert.assertEquals(((Map) list.get(0)).get("data"),nodeData);
        Assert.assertEquals(((Map) list.get(0)).get("pushId"),version);
    }