public function testConstruct()
 {
     $entityFactoryMock = $this->getMock('Magento\\Framework\\Data\\Collection\\EntityFactoryInterface');
     $loggerMock = $this->getMock('Psr\\Log\\LoggerInterface');
     $fetchStrategyMock = $this->getMock('Magento\\Framework\\Data\\Collection\\Db\\FetchStrategyInterface');
     $managerMock = $this->getMock('Magento\\Framework\\Event\\ManagerInterface');
     $connectionMock = $this->getMock('Magento\\Framework\\DB\\Adapter\\Pdo\\Mysql', [], [], '', false);
     $resourceMock = $this->getMock('Magento\\Framework\\Flag\\FlagResource', [], [], '', false);
     $resourceMock->expects($this->any())->method('getConnection')->will($this->returnValue($connectionMock));
     $selectMock = $this->getMock('Magento\\Framework\\DB\\Select', ['getPart', 'setPart', 'from', 'columns'], [$connectionMock]);
     $connectionMock->expects($this->any())->method('select')->will($this->returnValue($selectMock));
     $this->model = new \Magento\Indexer\Model\ResourceModel\Mview\View\State\Collection($entityFactoryMock, $loggerMock, $fetchStrategyMock, $managerMock, $connectionMock, $resourceMock);
     $this->assertInstanceOf('Magento\\Indexer\\Model\\ResourceModel\\Mview\\View\\State\\Collection', $this->model);
     $this->assertEquals('Magento\\Indexer\\Model\\Mview\\View\\State', $this->model->getModelName());
     $this->assertEquals('Magento\\Indexer\\Model\\ResourceModel\\Mview\\View\\State', $this->model->getResourceModelName());
 }