/**
  * Convert the given response into a TestResponse.
  *
  * @param  \Illuminate\Http\Response  $response
  * @return static
  */
 public static function fromBaseResponse($response)
 {
     $testResponse = new static($response->getContent(), $response->status());
     $testResponse->headers = $response->headers;
     if (isset($response->original)) {
         $testResponse->original = $response->original;
     }
     if (isset($response->exception)) {
         $testResponse->exception = $response->exception;
     }
     return $testResponse;
 }