public function addTag()
{
$asset = $this->buildAssetObject();
$tag = new Tag('test');
$this->tagRepository->add($tag);
$asset->addTag($tag);
$this->persistenceManager->persistAll();
$this->persistenceManager->clearState();
$asset = $this->assetRepository->findAll()->getFirst();
$this->assertAssetHasTags($asset, ['test']);
}