public function testProcessDocumentWithExceptionAndFile()
{
$this->eventDispatcher->addListener(Events::DOCUMENT_BODY, function () {
throw new \Exception('Exception message');
});
$this->processor->processDocument(new Document(new SplFileInfo(__FILE__, '', basename(__FILE__))));
}