String node = "node";
ZNRecord record = new ZNRecord(node);
record.setSimpleFields(map);
ZNRecordSerializer serializer = new ZNRecordSerializer();
int bytesPerNode = serializer.serialize(record).length;
System.out.println("use znode of size " + bytesPerNode / 1024 + "K");
Assert.assertTrue(bytesPerNode < 1024 * 1024,
"zookeeper has a default 1M limit on size");
// test getPropertyRootNamespace()