/**
  * @param array $jsConfig
  * @param array $expectedResult
  * @return void
  * @dataProvider getJsConfigDataProvider
  */
 public function testGetJsConfig(array $jsConfig, array $expectedResult)
 {
     $namespace = 'my_namespace';
     /** @var \Magento\Framework\View\Element\UiComponentInterface|MockObject $uiComponentMock */
     $uiComponentMock = $this->getMockBuilder('Magento\\Framework\\View\\Element\\UiComponentInterface')->setMethods(['getData'])->getMockForAbstractClass();
     $uiComponentMock->expects($this->once())->method('getData')->with('js_config')->willReturnOnConsecutiveCalls($jsConfig);
     $uiComponentMock->expects($this->any())->method('getContext')->willReturn($this->contextMock);
     $this->contextMock->expects($this->any())->method('getNamespace')->willReturn($namespace);
     $this->assertEquals($expectedResult, $this->abstractComponent->getJsConfig($uiComponentMock));
 }