@Test
public void generateReportWithCorrectData() throws PDFGenerationException, IOException {

    byte[] pdfBytes = monthlyTaxReportService.generateReport(3L, TEST_YEAR, TEST_MONTH);
    PDDocument pdfDocument = PDDocument.load(new ByteArrayInputStream(pdfBytes));
    assertThat(pdfDocument)
            .containsText("WEBSERVICE RETURNS SUCCESS " + SUCCESS_AMOUNT + " euro");
    pdfDocument = PDDocument.load(new ByteArrayInputStream(pdfBytes));
    assertThat(pdfDocument)
            .containsText("WEBSERVICE RETURNS FAILURE " + FAILED_AMOUNT + " euro");
    pdfDocument = PDDocument.load(new ByteArrayInputStream(pdfBytes));
    assertThat(pdfDocument)
            .containsText("PERIOD: " + 5 + " " + TEST_YEAR);
}