/** * @covers Ebizmarts\Mandrill\Model\Message::addHeader * @expectedException \Magento\Framework\Exception\LocalizedException * @expectedExceptionMessage Cannot set standard header from addHeader() */ public function testAddHeaderWithException() { $this->_message->addHeader('to', 'value'); }