public function testBankstatusRequest()
 {
     $request = new GiropayBankstatusRequest();
     $request->setBic("TESTDETT421");
     $httpRequest = $this->requestGenerator->buildRequest($this->client, $request);
     $this->assertEquals('POST', $httpRequest->getMethod());
     $this->assertEquals("https://payment.girosolution.de/girocheckout/api/v2/giropay/bankstatus", $httpRequest->getUrl());
     $this->assertEquals($httpRequest->getBody()->getField('hash'), "b6e4de587edea9f2d61bd2820f0638e4");
 }
 /**
  * @param $giropayRequest
  * @return mixed
  * @throws Exception
  */
 public function communicateWithVendor($giropayRequest)
 {
     $httpRequest = $this->requestGenerator->buildRequest($this->httpClient, $giropayRequest);
     $httpResponse = $this->httpClient->send($httpRequest);
     $giropayResponse = $this->responseGenerator->buildResponseFromHttpResponse($httpResponse, $giropayRequest);
     return $giropayResponse;
 }