public function testRemoveIndexes()
{
$object = static::$object;
$object->removeValueFromIndex('lucky_numbers_int', 64);
$object->removeValueFromIndex('lastname_bin', 'Knuth');
$object->setVclock(static::$vclock);
$command = (new Command\Builder\StoreObject(static::$riak))->withObject($object)->buildLocation(static::$key, 'Users', static::LEVELDB_BUCKET_TYPE)->build();
// TODO: internalize Vclock to Riak\Object.
$response = $command->execute();
$this->assertEquals('204', $response->getCode());
$command = (new Command\Builder\FetchObject(static::$riak))->buildLocation(static::$key, 'Users', static::LEVELDB_BUCKET_TYPE)->build();
$response = $command->execute();
$this->assertEquals('200', $response->getCode());
$this->assertInstanceOf('Basho\\Riak\\Object', $response->getObject());
$this->assertEquals('person', $response->getObject()->getData());
$indexes = $response->getObject()->getIndexes();
$this->assertEquals($indexes['lucky_numbers_int'], [42]);
}