@Test
public void testGetVersionsWithApprovedVersion() {

	JournalArticle journalArticle1 = _getJournalArticle();
	Mockito.when(
		journalArticle1.getStatus()
	).thenReturn(
		WorkflowConstants.STATUS_DRAFT
	);
	Mockito.when(
		journalArticle1.getVersion()
	).thenReturn(
		1.1
	);
	JournalArticle journalArticle2 = _getJournalArticle();
	Mockito.when(
		journalArticle2.getStatus()
	).thenReturn(
		WorkflowConstants.STATUS_APPROVED
	);
	Mockito.when(
		journalArticle1.getVersion()
	).thenReturn(
		1.0
	);
	JournalArticleContentDashboardItem journalArticleContentDashboardItem =
		new JournalArticleContentDashboardItem(
			null, null, null, null, null, null, journalArticle1,
			_getLanguage(), journalArticle2);
	List<ContentDashboardItem.Version> versions =
		journalArticleContentDashboardItem.getVersions(LocaleUtil.US);
	Assert.assertEquals(versions.toString(), 2, versions.size());
	ContentDashboardItem.Version version1 = versions.get(0);
	Assert.assertEquals(
		WorkflowConstants.LABEL_APPROVED, version1.getLabel());
	Assert.assertEquals("success", version1.getStyle());
	ContentDashboardItem.Version version2 = versions.get(1);
	Assert.assertEquals(WorkflowConstants.LABEL_DRAFT, version2.getLabel());
	Assert.assertEquals("secondary", version2.getStyle());
}