public function testUpdatesData()
{
$data = ['contentType' => 'image/jpg'];
$this->connection->patchObject(Argument::any())->willReturn(['name' => 'object.txt'] + $data);
$object = new StorageObject($this->connection->reveal(), 'object.txt', 'bucket', null, ['contentType' => 'image/png']);
$object->update($data);
$this->assertEquals($data['contentType'], $object->info()['contentType']);
}