### Question:
BankProfileReloadingScheduleTask { @Scheduled(cron = "${aspsp-profile-reload.cron.expression:-}") public void updateProfileConfiguration() { ProfileConfigurations newProfileConfiguration = bankProfileReadingService.getProfileConfigurations(); profileConfigurations.updateSettings(newProfileConfiguration); profileConfigurations.setDefaultProperties(); }  @Scheduled(cron = "${aspsp-profile-reload.cron.expression:-}") void updateProfileConfiguration();  }### Answer:
@Test void updateProfileConfiguration() { bankProfileReloadingScheduleTask.updateProfileConfiguration(); ProfileConfiguration newProfileConfiguration = buildNewProfileConfiguration(); ArgumentCaptor<ProfileConfigurations> profileConfigurationsArgumentCaptor = ArgumentCaptor.forClass(ProfileConfigurations.class); verify(profileConfigurations, times(1)).updateSettings(profileConfigurationsArgumentCaptor.capture()); verify(profileConfigurations, times(1)).setDefaultProperties(); assertEquals(bankProfileReadingService.getProfileConfigurations().getSingleConfiguration(), newProfileConfiguration); assertEquals(profileConfigurationsArgumentCaptor.getValue().getSingleConfiguration().getSetting(), newProfileConfiguration.getSetting()); }