@Test
public void testStagingLabel() throws Exception {

	String entryClassName = RandomTestUtil.randomString();
	long entryClassPK = RandomTestUtil.randomLong();
	whenAssetRendererFactoryGetAssetRenderer(entryClassPK, assetRenderer);
	whenAssetRendererFactoryLookupGetAssetRendererFactoryByClassName(
		entryClassName);
	whenGroupLocalServiceGetGroup(true);
	whenLanguageGet("staged");
	SearchResultSummaryDisplayContext searchResultSummaryDisplayContext =
		build(createDocument(entryClassName, entryClassPK));
	Assert.assertEquals(
		_SUMMARY_TITLE + " (staged)",
		searchResultSummaryDisplayContext.getHighlightedTitle());
}