public function testGetComposerJsonFiles()
 {
     $configPath = 'app/code/Test/Module/composer.json';
     $modulesDirectoryMock = $this->getMock('Magento\\Framework\\Filesystem\\Directory\\ReadInterface');
     $modulesDirectoryMock->expects($this->any())->method('getRelativePath')->will($this->returnArgument(0));
     $modulesDirectoryMock->expects($this->any())->method('isExist')->with($configPath)->will($this->returnValue(true));
     $this->directoryReadFactoryMock->expects($this->any())->method('create')->will($this->returnValue($modulesDirectoryMock));
     $this->_moduleListMock->expects($this->once())->method('getNames')->will($this->returnValue(['Test_Module']));
     $model = new \Magento\Framework\Module\Dir\Reader($this->_dirsMock, $this->_moduleListMock, new FileIteratorFactory(new \Magento\Framework\Filesystem\File\ReadFactory(new \Magento\Framework\Filesystem\DriverPool())), $this->directoryReadFactoryMock);
     $model->setModuleDir('Test_Module', '', 'app/code/Test/Module');
     $this->assertEquals($configPath, $model->getComposerJsonFiles()->key());
 }