@@ -0,0 +1,1879 @@
+package org.synyx.urlaubsverwaltung.account;%0A%0Aimport org.junit.jupiter.api.BeforeEach;%0Aimport org.junit.jupiter.api.Test;%0Aimport org.junit.jupiter.api.extension.ExtendWith;%0Aimport org.mockito.Mock;%0Aimport org.mockito.junit.jupiter.MockitoExtension;%0Aimport org.springframework.scheduling.config.CronTask;%0Aimport org.springframework.scheduling.config.ScheduledTaskRegistrar;%0A%0Aimport java.util.List;%0A%0Aimport static org.assertj.core.api.Assertions.assertThat;%0Aimport static org.mockito.Mockito.verify;%0A%0A@ExtendWith(MockitoExtension.class)%0Aclass VacationDaysReminderConfigurationTest %7B%0A%0A    private VacationDaysReminderConfiguration sut;%0A%0A    @Mock%0A    private VacationDaysReminderService vacationDaysReminderService;%0A%0A    @BeforeEach%0A    void setUp() %7B%0A        sut = new VacationDaysReminderConfiguration(new AccountProperties(), vacationDaysReminderService);%0A    %7D%0A%0A    @Test%0A    void ensureCronTasksForReminderServiceAreAdded() %7B%0A%0A        final ScheduledTaskRegistrar taskRegistrar = new ScheduledTaskRegistrar();%0A        sut.configureTasks(taskRegistrar);%0A%0A        final List%3CCronTask%3E cronTaskList = taskRegistrar.getCronTaskList();%0A        assertThat(cronTaskList).hasSize(2);%0A%0A        final CronTask remindForCurrentlyLeftVacationDaysCronTask = cronTaskList.get(0);%0A        assertThat(remindForCurrentlyLeftVacationDaysCronTask.getExpression()).isEqualTo(%220 0 6 1 10 *%22);%0A        remindForCurrentlyLeftVacationDaysCronTask.getRunnable().run();%0A        verify(vacationDaysReminderService).remindForCurrentlyLeftVacationDays();%0A%0A        final CronTask ForExpiredRemainingVacationDaysCronTask = cronTaskList.get(1);%0A        assertThat(ForExpiredRemainingVacationDaysCronTask.getExpression()).isEqualTo(%220 0 6 1 4 *%22);%0A        ForExpiredRemainingVacationDaysCronTask.getRunnable().run();%0A        verify(vacationDaysReminderService).notifyForExpiredRemainingVacationDays();%0A    %7D%0A%7D%0A

Add tests for VacationDaysReminderConfiguration