public function testOnDocumentWithTags($expected, $file)
{
$document = $this->createDocument($file);
$event = new CarewEvent($document);
$extraction = new Extraction();
$extraction->onDocument($event);
$this->assertSame($expected, $document->getTags());
}