public function testConstructorWithError()
 {
     $errorId = 'testid';
     $errorType = 'testtype';
     $errorMessage = 'testmessage';
     $errorInfo = 'testinfo';
     $errorName = 'testname';
     $isPerunException = 'true';
     $request = $this->getRequestMock();
     $payload = $this->getPayloadMock($errorId, $errorType, $errorMessage, $errorInfo, $errorName, $isPerunException);
     $response = new Response($request, $payload);
     $this->assertTrue($response->isError());
     $this->assertSame($errorId, $response->getErrorId());
     $this->assertSame($errorType, $response->getErrorType());
     $this->assertSame($errorMessage, $response->getErrorMessage());
     $this->assertSame($errorInfo, $response->getErrorInfo());
     $this->assertSame($errorName, $response->getErrorName());
     $this->assertTrue($response->isPerunException());
 }