public function setUp()
 {
     parent::setUp();
     $this->updater = new LayoutUpdater();
     $this->em = new EventManager(new SharedEventManager());
     $this->updater->setEventManager($this->em);
     $instructions = [['default', 'frontend', new Config(['blocks' => ['header' => [], 'footer' => []]], true)], ['another-handle', 'frontend', new Config(['blocks' => ['widget1' => []]], true)], ['handle/with-include', 'frontend', new Config(['blocks' => ['do.not.override' => ['remove' => false]], LayoutUpdaterInterface::INSTRUCTION_INCLUDE => ['included/handle']], true)], ['included/handle', 'frontend', new Config(['blocks' => ['some.included.block' => ['template' => 'some/tpl'], 'do.not.override' => ['remove' => true]], LayoutUpdaterInterface::INSTRUCTION_INCLUDE => ['included/handle/no2']], true)], ['included/handle/no2', 'frontend', new Config(['blocks' => ['some.included.block.2' => []]])]];
     $this->em->getSharedManager()->clearListeners(LayoutUpdater::class);
     $collectorMock = $this->getMockBuilder(CollectorInterface::class)->getMock();
     $collectorMock->method('collect')->will($this->returnValueMap($instructions));
     $this->updater->attachCollector('mock', $collectorMock);
 }