BaseExportProcessor { public void addExportHandler( ExportHandler exportHandler ) { exportHandlerList.add( exportHandler ); } BaseExportProcessor(); void addExportHandler( ExportHandler exportHandler ); String getPath(); void setPath( String path ); IUnifiedRepository getUnifiedRepository(); void setUnifiedRepository( IUnifiedRepository unifiedRepository ); abstract File performExport( RepositoryFile exportRepositoryFile ); abstract void exportDirectory( RepositoryFile repositoryDir, OutputStream outputStream, String filePath ); abstract void exportFile( RepositoryFile repositoryFile, OutputStream outputStream, String filePath );  }
@Test public void testAddExportHandler() throws Exception { defaultExportHandler = mock( DefaultExportHandler.class ); testExportProcessor.addExportHandler( defaultExportHandler ); }