@Test
public void testGetViewInPanelURL() {

	MockLiferayPortletRenderRequest mockLiferayPortletRenderRequest =
		new MockLiferayPortletRenderRequest();
	MockLiferayPortletURL mockLiferayPortletURL =
		new MockLiferayPortletURL();
	mockLiferayPortletRenderRequest.setAttribute(
		"null" + StringPool.DASH + WebKeys.CURRENT_PORTLET_URL,
		mockLiferayPortletURL);
	mockLiferayPortletRenderRequest.setAttribute(
		WebKeys.LOCALE, LocaleUtil.US);
	ContentDashboardDropdownItemsProvider
		contentDashboardDropdownItemsProvider =
			new ContentDashboardDropdownItemsProvider(
				_http, _language, mockLiferayPortletRenderRequest,
				new MockLiferayPortletRenderResponse(), new PortalImpl());
	ContentDashboardItem contentDashboardItem = _getContentDashboardItem(
		Collections.singletonList(
			_getContentDashboardItemAction(
				"viewInPanel",
				ContentDashboardItemAction.Type.VIEW_IN_PANEL,
				"validURL")));
	List<DropdownItem> dropdownItems =
		contentDashboardDropdownItemsProvider.getDropdownItems(
			contentDashboardItem);
	Stream<DropdownItem> stream = dropdownItems.stream();
	DropdownItem viewInPanelDropdownItem = stream.filter(
		dropdownItem -> Objects.equals(
			String.valueOf(dropdownItem.get("label")), "viewInPanel")
	).findFirst(
	).orElseThrow(
		() -> new AssertionError()
	);
	Map<String, Object> data =
		(Map<String, Object>)viewInPanelDropdownItem.get("data");
	Assert.assertEquals("showMetrics", String.valueOf(data.get("action")));
	Assert.assertEquals("validURL", String.valueOf(data.get("fetchURL")));
}