### Question:
AMJournalArticleExportImportContentProcessor implements ExportImportContentProcessor<String> { @Override public String replaceExportContentReferences( PortletDataContext portletDataContext, StagedModel stagedModel, String content, boolean exportReferencedContent, boolean escapeContent) throws Exception { String replacedContent = _journalArticleExportImportContentProcessor. replaceExportContentReferences( portletDataContext, stagedModel, content, exportReferencedContent, escapeContent); if (!_hasTextHTMLDDMFormField(stagedModel)) { return replacedContent; } return _amJournalArticleContentHTMLReplacer.replace( replacedContent, html -> _htmlExportImportContentProcessor. replaceExportContentReferences( portletDataContext, stagedModel, html, exportReferencedContent, escapeContent)); }  @Override String replaceExportContentReferences(
			PortletDataContext portletDataContext, StagedModel stagedModel,
			String content, boolean exportReferencedContent,
			boolean escapeContent); @Override String replaceImportContentReferences(
			PortletDataContext portletDataContext, StagedModel stagedModel,
			String content); @Override void validateContentReferences(long groupId, String content);  }### Answer:
@Test public void testExportCallsBothExportImportContentProcessors() throws Exception { String originalContent = RandomTestUtil.randomString(); String journalArticleReplacedContent = RandomTestUtil.randomString(); Mockito.doReturn( journalArticleReplacedContent ).when( _journalArticleExportImportContentProcessor ).replaceExportContentReferences( _portletDataContext, _journalArticle, originalContent, false, false ); String adaptiveMediaReplacedContent = RandomTestUtil.randomString(); Mockito.doReturn( adaptiveMediaReplacedContent ).when( _htmlExportImportContentProcessor ).replaceExportContentReferences( _portletDataContext, _journalArticle, journalArticleReplacedContent, false, false ); Assert.assertEquals( adaptiveMediaReplacedContent, _amJournalArticleExportImportContentProcessor. replaceExportContentReferences( _portletDataContext, _journalArticle, originalContent, false, false)); }