protected function preBuild()
 {
     $this->entityDTO->chargeResponse = $this->dtoBuilderFactory->getChargeResponseDTOBuilder($this->entity->getChargeResponse())->build();
 }
 public function testInvalidPaymentThrowsException()
 {
     $dtoBuilderFactory = new DTOBuilderFactory();
     $this->setExpectedException(DTOBuilderException::class, 'Invalid payment');
     $dtoBuilderFactory->getPaymentDTOBuilder(new FakePayment());
 }