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