FS.dump(TestConf.tmpPath + "/234/root/node1.data", "version:1\r\ni'm newer info1");
FS.dump(TestConf.tmpPath + "/234/root/node2.data", "version:0\r\ni'm older info2");
CountDownLatch connectedSignal = new CountDownLatch(1);
TestHandler th = new TestHandler(connectedSignal);
IService iservice = new IService("127.0.0.1:6000",null,null,null,"./src/test/tmp");
iservice.setEventHandle(Constants.DISCONNECT_EVENT, th);
iservice.init();
connectedSignal.await();
Config config = iservice.createConfig("/root/node1");
DefaultData data = (DefaultData) config.get("info", 111);
Assert.assertEquals("i'm in newer node", data.getData());
this.clearUpFiles(TestConf.tmpPath);
}