@Rule
public ZkTestSystem _zk = ZkTestSystem.getInstance();
@Test
public void testBytes() throws Exception {
ZkClient zkClient = new ZkClient(_zk.getZkServerAddress(), 2000, 2000, new BytesPushThroughSerializer());
byte[] bytes = new byte[100];
new Random().nextBytes(bytes);
zkClient.createPersistent("/a", bytes);
byte[] readBytes = zkClient.readData("/a");
assertArrayEquals(bytes, readBytes);