/**
  * @param string $message
  * @return ClaimCheck
  */
 private function storeMessageInS3($message)
 {
     $s3Client = $this->configuration->getS3Client();
     $s3BucketName = $this->configuration->getS3BucketName();
     $claimCheckFactory = $this->configuration->getClaimCheckFactory();
     $claimCheck = $claimCheckFactory->create();
     $s3Client->putObject(['Bucket' => $s3BucketName, 'Key' => $claimCheck->getS3Key(), 'Body' => $message]);
     return $claimCheck;
 }
 public function testGetClaimCheckFactory()
 {
     self::assertInstanceOf(ClaimCheckFactoryInterface::class, $this->sut->getClaimCheckFactory());
     $this->sut->setClaimCheckFactory($expected = new ClaimCheckFactory('AnotherBucket'));
     self::assertSame($expected, $this->sut->getClaimCheckFactory());
 }