public function testDefinitionCreationWithInvalidInterfaceThrowsException()
 {
     $this->setExpectedException(ClientException\RuntimeException::CLASS);
     // Using existing class which doesn't implement Detail\FileConversion\Client\Job\JobBuilder\Definition\DefinitionInterface
     $this->jobBuilder->setJobClass(JobBuilder::CLASS);
     $this->jobBuilder->createJob();
 }
 /**
  * {@inheritDoc}
  * @return JobBuilder
  */
 public function createService(ServiceLocatorInterface $serviceLocator)
 {
     /** @var \Detail\FileConversion\Options\ModuleOptions $moduleOptions */
     $moduleOptions = $serviceLocator->get('Detail\\FileConversion\\Options\\ModuleOptions');
     $jobBuilderOptions = $moduleOptions->getJobBuilder();
     $jobBuilder = new JobBuilder();
     $jobBuilder->setDefaultOptions($jobBuilderOptions->getDefaultOptions());
     $jobClass = $jobBuilderOptions->getJobClass();
     if ($jobClass !== null) {
         $jobBuilder->setJobClass($jobClass);
     }
     $actionClass = $jobBuilderOptions->getActionClass();
     if ($actionClass !== null) {
         $jobBuilder->setActionClass($actionClass);
     }
     return $jobBuilder;
 }