public function testFetchOk()
{
$command = (new Command\Builder\FetchObject(static::$riak))->buildLocation(static::$key, 'users')->build();
$response = $command->execute();
$this->assertEquals('200', $response->getCode());
$this->assertInstanceOf('Basho\\Riak\\Object', $response->getObject());
$this->assertEquals('some_data', $response->getObject()->getData());
$this->assertNotEmpty($response->getObject()->getVclock());
// confirm we are using the HTTP api bridge
if (static::$riak->getApi() instanceof \Basho\Riak\Api\Http) {
$headers = static::$riak->getApi()->getResponseHeaders();
$this->assertNotEmpty($headers);
$this->assertNotEmpty($headers["Last-Modified"]);
$this->assertNotEmpty(new \DateTime($headers["Last-Modified"]));
}
static::$object = $response->getObject();
}