@Test
public void validateDelayForFixedIntervalTypeJobs()
{

    String jobConfigUid = "o8kG3Qk3nG3";
    JobConfiguration contAnalyticsTableJobConfig = new JobConfiguration();
    contAnalyticsTableJobConfig.setUid( jobConfigUid );
    contAnalyticsTableJobConfig.setJobType( JobType.CONTINUOUS_ANALYTICS_TABLE );
    Mockito.when( jobConfigurationService.getJobConfigurationByUid( Mockito.eq( jobConfigUid ) ) )
        .thenReturn( contAnalyticsTableJobConfig );
    Mockito.when( schedulingManager.getJob( Mockito.eq( JobType.CONTINUOUS_ANALYTICS_TABLE ) ) )
        .thenReturn( job );
    JobConfiguration jobConfiguration = new JobConfiguration();
    jobConfiguration.setUid( jobConfigUid );
    jobConfiguration.setJobType( JobType.CONTINUOUS_ANALYTICS_TABLE );
    jobConfiguration.setJobParameters( new ContinuousAnalyticsJobParameters( 1, null, null ) );
    List<ErrorReport> errorReports = hook.validateInternal( jobConfiguration );
    Assert.assertEquals( 1, errorReports.size() );
    Assert.assertEquals( ErrorCode.E7007, errorReports.get( 0 ).getErrorCode() );
}