riak::cluster cluster(riak::node("127.0.0.1", "8087"));
riak::client client(cluster.make_client());
riak::basic_bucket<std::string> bucket = client.bucket<std::string>("bucket");
bucket.del("foo").rw(2)();
std::string value = bucket.fetch("foo").r(3)();
BOOST_REQUIRE(value == "");
value = bucket.store("foo", "bar").w(1)();
value = bucket.fetch("foo").r(3)();
BOOST_REQUIRE(value == "bar");