@SuppressWarnings("unchecked")
@Test(expected = SpringBatchLightminApplicationException.class)
public void stopJobConfigurationSchedulerExceptionTest() throws NoSuchJobConfigurationException {

    final Long jobConfigurationId = 10L;
    when(this.properties.getApplicationName()).thenReturn(APPLICATION_NAME);
    when(this.jobConfigurationRepository.getJobConfiguration(jobConfigurationId, APPLICATION_NAME))
            .thenThrow(NoSuchJobConfigurationException.class);
    this.defaultAdminService.stopJobConfiguration(jobConfigurationId);
}