@Test
public void testTagsURLDownloadAndUserPortraitFromResult()
	throws Exception {

	long userId = RandomTestUtil.randomLong();
	AssetEntry assetEntry = createAssetEntryWithTagsPresent(userId);
	String className = RandomTestUtil.randomString();
	long entryClassPK = RandomTestUtil.randomLong();
	whenAssetEntryLocalServiceFetchEntry(
		className, entryClassPK, assetEntry);
	whenAssetRendererFactoryGetAssetRenderer(entryClassPK, assetRenderer);
	whenAssetRendererFactoryLookupGetAssetRendererFactoryByClassName(
		className);
	String urlDownload = RandomTestUtil.randomString();
	whenAssetRendererGetURLDownload(assetRenderer, urlDownload);
	whenIndexerRegistryGetIndexer(className, createIndexer());
	SearchResultSummaryDisplayContext searchResultSummaryDisplayContext =
		build(createDocument(className, entryClassPK));
	assertAssetRendererURLDownloadVisible(
		urlDownload, searchResultSummaryDisplayContext);
	assertTagsVisible(entryClassPK, searchResultSummaryDisplayContext);
	assertUserPortraitVisible(userId, searchResultSummaryDisplayContext);
}