AMBlogsEntryExportImportContentProcessor implements ExportImportContentProcessor<String> { @Override public String replaceExportContentReferences( PortletDataContext portletDataContext, StagedModel stagedModel, String content, boolean exportReferencedContent, boolean escapeContent) throws Exception { String replacedContent = _blogsEntryExportImportContentProcessor. replaceExportContentReferences( portletDataContext, stagedModel, content, exportReferencedContent, escapeContent); return _htmlExportImportContentProcessor.replaceExportContentReferences( portletDataContext, stagedModel, replacedContent, 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);  }
@Test public void testExportCallsBothExportImportContentProcessors() throws Exception { String originalContent = RandomTestUtil.randomString(); String blogsEntryReplacedContent = RandomTestUtil.randomString(); Mockito.doReturn( blogsEntryReplacedContent ).when( _blogsEntryExportImportContentProcessor ).replaceExportContentReferences( _portletDataContext, _blogsEntry, originalContent, false, false ); String adaptiveMediaReplacedContent = RandomTestUtil.randomString(); Mockito.doReturn( adaptiveMediaReplacedContent ).when( _htmlExportImportContentProcessor ).replaceExportContentReferences( _portletDataContext, _blogsEntry, blogsEntryReplacedContent, false, false ); Assert.assertEquals( adaptiveMediaReplacedContent, _amBlogsEntryExportImportContentProcessor. replaceExportContentReferences( _portletDataContext, _blogsEntry, originalContent, false, false)); }