client.send(new CompareAndSetRequest(name, toData("foo"), toData("foo")));
assertEquals(Boolean.TRUE, client.receive());
assertEquals("foo",reference.get());
client.send(new CompareAndSetRequest(name, toData(null), toData("pipo")));
assertEquals(Boolean.FALSE, client.receive());
assertEquals("foo",reference.get());
client.send(new CompareAndSetRequest(name, toData("bar"), toData("foo")));
assertEquals(Boolean.FALSE, client.receive());