public Stat set(Path path, byte[] data) {
        return set(path, data, -1);
    }
@Test
    public void require_that_write_fails_if_data_is_more_than_jute_max_buffer() {
        CuratorConfig.Builder builder = new CuratorConfig.Builder();
        builder.server(createZKBuilder(localhost, port1));
        try (Curator curator = createCurator(new CuratorConfig(builder), 1)) {
            try {
                curator.set(Path.createRoot().append("foo"), Utf8.toBytes("more than 1 byte"));
                fail("Did not fail when writing more than juteMaxBuffer bytes");
            } catch (IllegalArgumentException e) {
                assertEquals("Cannot not set data at /foo, 16 bytes is too much, max number of bytes allowed per node is 1",
                             e.getMessage());
            }
        }
    }