public function testSetupIndexObjects()
{
for ($x = 0; $x <= 1000; $x++) {
$object = (new RObject('student' . $x))->addValueToIndex('lucky_numbers_int', $x)->addValueToIndex('group_int', $x % 2)->addValueToIndex('grade_bin', chr(65 + $x % 6))->addValueToIndex('lessThan500_bin', $x < 500 ? 'less' : 'more');
$command = (new Command\Builder\StoreObject(static::$riak))->withObject($object)->buildLocation('student' . $x, 'Students' . static::$bucket, static::LEVELDB_BUCKET_TYPE)->build();
$response = $command->execute();
$this->assertEquals('204', $response->getCode());
}
}