@Test
public void updateJobConfigurationTest() throws NoSuchJobConfigurationException {

    final JobSchedulerConfiguration jobSchedulerConfiguration = DomainTestHelper.createJobSchedulerConfiguration(
            "0 0/5 * * * ?", null, null, JobSchedulerType.CRON);
    final JobConfiguration jobConfiguration = DomainTestHelper.createJobConfiguration(jobSchedulerConfiguration);
    jobConfiguration.setJobConfigurationId(1L);
    when(this.properties.getApplicationName()).thenReturn(APPLICATION_NAME);
    when(this.jobConfigurationRepository.getJobConfiguration(jobConfiguration.getJobConfigurationId(), APPLICATION_NAME)).thenReturn(jobConfiguration);
    try {
        this.defaultAdminService.updateJobConfiguration(jobConfiguration);
    } catch (final SpringBatchLightminApplicationException e) {
        fail(e.getMessage());
    }
}