/**
  * @return Imposter
  */
 protected function getImporterMock()
 {
     $imposter = new Imposter();
     $imposter->setProtocol(Imposter::HTTP_PROTOCOL);
     $imposter->setPort('4545');
     return $imposter;
 }
 /**
  * Remove imposter in service.
  *
  * @param Imposter $imposter
  *
  * @return boolean
  */
 public function removeImposterInService(Imposter $imposter)
 {
     try {
         $deleteUrl = $this->serviceHost . self::IMPOSTER_URI . '/' . $imposter->getPort();
         return $this->httpClient->delete($deleteUrl);
     } catch (RequestException $exception) {
         $this->manageException($exception);
     }
 }