public function testUploadsData()
{
$response = new Response(200, ['Location' => 'theResumeUri'], $this->successBody);
$this->requestWrapper->send(Argument::type('Psr\\Http\\Message\\RequestInterface'), Argument::type('array'))->willReturn($response);
$uploader = new ResumableUploader($this->requestWrapper->reveal(), $this->stream, 'http://www.example.com');
$this->assertEquals(json_decode($this->successBody, true), $uploader->upload());
}