@Test
public void testClassFieldsWithoutAssetTagsOrCategories() throws Exception {

	PortletURL portletURL = Mockito.mock(PortletURL.class);
	Mockito.doReturn(
		portletURL
	).when(
		portletURLFactory
	).getPortletURL();
	String entryClassName = RandomTestUtil.randomString();
	long entryClassPK = RandomTestUtil.randomLong();
	whenAssetRendererFactoryGetAssetRenderer(entryClassPK, assetRenderer);
	whenAssetRendererFactoryLookupGetAssetRendererFactoryByClassName(
		entryClassName);
	SearchResultSummaryDisplayContext searchResultSummaryDisplayContext =
		build(createDocument(entryClassName, entryClassPK));
	Assert.assertEquals(
		entryClassName, searchResultSummaryDisplayContext.getClassName());
	Assert.assertEquals(
		entryClassPK, searchResultSummaryDisplayContext.getClassPK());
	Assert.assertEquals(
		portletURL, searchResultSummaryDisplayContext.getPortletURL());
}