@Test
public void testToContentDashboardItemTypeOptionalByJSONObject()
	throws PortalException {

	ContentDashboardItemType contentDashboardItemType =
		_getContentDashboardItemType();
	ContentDashboardItemTypeFactory contentDashboardItemTypeFactory =
		_getContentDashboardItemTypeFactory(contentDashboardItemType);
	ContentDashboardItemTypeFactoryTracker
		contentDashboardItemTypeFactoryTracker =
			_getContentDashboardItemTypeFactoryTracker(
				contentDashboardItemType, contentDashboardItemTypeFactory);
	Optional<? extends ContentDashboardItemType>
		contentDashboardItemTypeOptional =
			ContentDashboardItemTypeUtil.toContentDashboardItemTypeOptional(
				contentDashboardItemTypeFactoryTracker,
				JSONFactoryUtil.createJSONObject(
					contentDashboardItemType.toJSONString(LocaleUtil.US)));
	Assert.assertEquals(
		contentDashboardItemType, contentDashboardItemTypeOptional.get());
}