    @Test
    @DisplayName("Update of timeslice after polling")
    void updatePollingTimeslice() {


        // define polling cycle
        when(lastPolledService.getPollingTimeslice())
                                                     .thenReturn(new PollingTimeslice(CUTOFF_TIME.date, START_TIME.date,
                                                                                      END_TIME.date));

        // perform polling
        pollingService.run();

        // verify timeslice update
        final ArgumentCaptor<PollingTimeslice> pollingTimesliceCaptor = ArgumentCaptor.forClass(PollingTimeslice.class);
        verify(lastPolledService, times(1))
                                           .updatePollingTimeslice(pollingTimesliceCaptor.capture());

        final PollingTimeslice updatePollingTimeslice = pollingTimesliceCaptor.getValue();
        Assertions.assertEquals(CUTOFF_TIME.date, updatePollingTimeslice.getCutoffTime());
        Assertions.assertEquals(START_TIME.date, updatePollingTimeslice.getStartTime());
        Assertions.assertEquals(END_TIME.date, updatePollingTimeslice.getEndTime());
    }