@Test
void testModify() throws Exception {

    ZkUtils.changeZkValue(curatorFramework, TEST_PATH, old -> {
        old.add("1");
        return old;
    }, this::setDecode, this::setEncode);
    assertEquals(setDecode(curatorFramework.getData().forPath(TEST_PATH)),
            Sets.newHashSet("1"));
    ZkUtils.changeZkValue(curatorFramework, TEST_PATH, old -> {
        old.remove("1");
        return old;
    }, this::setDecode, this::setEncode);
    assertEquals(setDecode(curatorFramework.getData().forPath(TEST_PATH)), Sets.newHashSet());
}