/**
  * {@inheritdoc}
  */
 public function getEntity()
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getEntity');
     if (!$pluginInfo) {
         return parent::getEntity();
     } else {
         return $this->___callPlugins('getEntity', func_get_args(), $pluginInfo);
     }
 }
 /**
  * @expectedException \Magento\Framework\Exception\LocalizedException
  * @expectedExceptionMessage Entity is unknown
  */
 public function testGetEntityEntityIsNotSet()
 {
     $this->_model->getEntity();
 }