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