public function testDefaultOptionsAreEmptyUnknownDefinition()
 {
     $this->jobBuilder->setDefaultOptions(array('job.src' => 'job.src', 'function.name' => 'function.name'));
     $definition = $this->getMock(Definition\DefinitionInterface::CLASS);
     /** @var Definition\DefinitionInterface $definition */
     $this->assertEquals(array(), $this->jobBuilder->getDefaultOptions($definition));
 }
 /**
  * {@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;
 }