@Test
public void testImportCallsBothExportImportContentProcessors()
	throws Exception {

	String originalContent = RandomTestUtil.randomString();
	String journalArticleReplacedContent = RandomTestUtil.randomString();
	Mockito.doReturn(
		journalArticleReplacedContent
	).when(
		_journalArticleExportImportContentProcessor
	).replaceImportContentReferences(
		_portletDataContext, _journalArticle, originalContent
	);
	String adaptiveMediaReplacedContent = RandomTestUtil.randomString();
	Mockito.doReturn(
		adaptiveMediaReplacedContent
	).when(
		_htmlExportImportContentProcessor
	).replaceImportContentReferences(
		_portletDataContext, _journalArticle, journalArticleReplacedContent
	);
	Assert.assertEquals(
		adaptiveMediaReplacedContent,
		_amJournalArticleExportImportContentProcessor.
			replaceImportContentReferences(
				_portletDataContext, _journalArticle, originalContent));
}