@SuppressWarnings("unchecked")
@Test(expected = SpringBatchLightminApplicationException.class)
public void getJobConfigurationByIdErrorTest() {

    final Long jobConfigurationId = 1L;
    when(this.properties.getApplicationName()).thenReturn(APPLICATION_NAME);
    try {
        when(this.jobConfigurationRepository.getJobConfiguration(jobConfigurationId, APPLICATION_NAME))
                .thenThrow(NoSuchJobConfigurationException.class);
    } catch (final NoSuchJobConfigurationException e) {
        fail(e.getMessage());
    }
    this.defaultAdminService.getJobConfigurationById(jobConfigurationId);
}