@Test
public void given_aWordTemplate_whenConvertingToPdf_thenTheSamePdfIsGenerated() throws IOException, XDocReportException, PDFGenerationException {

    Map<String, Object> context = new HashMap<>();
    context.put("test", "cegeka-batchers");
    byte[] actual = pdfGeneratorService.generatePdfAsByteArray(new ClassPathResource("test_template.docx"), context);
    assertThat(PDDocument.load(new ByteArrayInputStream(actual)))
            .containsText("cegeka-batchers is working");
}