/**
  * Get reader instance
  *
  * @return \Magento\Framework\ObjectManager\Config\Reader\Dom
  */
 protected function _getReader()
 {
     if (empty($this->_reader)) {
         $this->_reader = $this->_readerFactory->create();
     }
     return $this->_reader;
 }
 protected function setUp()
 {
     $this->_readerMock = $this->getMock('Magento\\Framework\\ObjectManager\\Config\\Reader\\Dom', [], [], '', false);
     $this->_readerFactoryMock = $this->getMock('Magento\\Framework\\ObjectManager\\Config\\Reader\\DomFactory', ['create'], [], '', false);
     $this->_readerFactoryMock->expects($this->any())->method('create')->will($this->returnValue($this->_readerMock));
     $this->_cacheMock = $this->getMock('Magento\\Framework\\App\\Cache\\Type\\Config', [], [], '', false);
     $this->_model = new \Magento\Framework\App\ObjectManager\ConfigLoader($this->_cacheMock, $this->_readerFactoryMock);
 }
 public function testCreate()
 {
     $this->_objectManager->expects($this->once())->method('create')->with('Magento\\Framework\\ObjectManager\\Config\\Reader\\Dom')->will($this->returnValue($this->_object));
     $this->_factory->create([1]);
 }