/**
  * @dataProvider inputDataProvider
  * @param array $input
  * @param array $expected
  * @param ContextInterface $context
  */
 public function testConvertToImportFormat(array $input, array $expected, ContextInterface $context = null)
 {
     $this->dataConverter->expects($this->once())->method('getHeaderConversionRules')->will($this->returnValue(['key' => 'cKey']));
     if ($context) {
         $this->dataConverter->setImportExportContext($context);
     }
     $this->assertEquals($expected, $this->dataConverter->convertToImportFormat($input));
 }
 /**
  * {@inheritdoc}
  */
 public function setImportExportContext(ContextInterface $context)
 {
     parent::setImportExportContext($context);
     foreach ($this->nodeDataConverters as $dataConverter) {
         if ($dataConverter instanceof ContextAwareInterface) {
             $dataConverter->setImportExportContext($context);
         }
     }
 }