/**
  * Test failed auth is handled appropriately
  *
  * @expectedException \Bobbyshaw\WatsonVisualRecognition\Exceptions\AuthException
  */
 public function testFailedAuth()
 {
     $container = [];
     $response = $this->getMockHttpResponse('FailedAuth.txt', 401);
     $httpClient = $this->getMockHttpClientWithHistoryAndResponses($container, [$response]);
     $client = new Client($httpClient);
     $client->initialize(['username' => 'test', 'password' => 'test']);
     /** @var ClassifyRequest $request */
     $request = $client->classify(['images_file' => 'Tests/images/hummingbird-1047836_640.jpg']);
     $request->send();
 }
 public function testClassify()
 {
     $request = $this->client->classify();
     $this->assertInstanceOf(ClassifyRequest::class, $request);
 }