//Check they exist
Assert.assertNotNull(client.checkExists().forPath(path1));
Assert.assertNotNull(client.checkExists().forPath(path2));
//Set the nodes, path1 compressed, path2 uncompressed.
client.inTransaction().setData().compressed().forPath(path1, data1).and().
setData().forPath(path2, data2).and().commit();
Assert.assertNotEquals(data1, client.getData().forPath(path1));
Assert.assertEquals(data1, client.getData().decompressed().forPath(path1));