@Test
public void testResultsArePersisted() throws Exception {

    byte[] expectedPdfBytes = monthlyTaxReportService.generateReport(3L, TEST_YEAR, TEST_MONTH);
    verify(monthlyReportRepository).save(monthlyReportArgumentCaptor.capture());
    MonthlyReport value = monthlyReportArgumentCaptor.getValue();
    assertThat(value.getMonthlyReportPdf()).isEqualTo(expectedPdfBytes);
    assertThat(value.getYear()).isEqualTo(TEST_YEAR);
    assertThat(value.getMonth()).isEqualTo(TEST_MONTH);
    assertThat(value.getCalculationDate()).isNotNull();
}