ConvertDocumentService implements IConvertDocumentService { public Future<File> convert2PDF(File inputFile, File outputDir) { logger.debug("convert2PDF begin"); return createConvertDocCommand(DocumentType.PDF, inputFile, outputDir).queue(); } @Autowired  ConvertDocumentService(ConvertDocumentConfiguration config); @Autowired void setResourceLoader(ResourceLoader resourceLoader); Future<File> convertCDA2HTML(String eventId, String cda, File outputDir); Future<File> convert2HTML(File inputFile, File outputDir); Future<File> convert2PDF(File inputFile, File outputDir); Future<File> convert2Text(File inputFile, File outputDir); List<Future<File>> convert(File inputFile, File outputDir, DocumentType... documentTypes);  }
@Test public void testConvert2PDF() { Future<File> future = testConvertDocumentService.convert2PDF(mockInputFile, mockOutputDir); assertNotNull(future); try { assertThat(mockOutputFilePdf, is(future.get())); } catch (Exception e) { fail(e.getMessage()); } }