@Test
public void validateCronExpressionForCronTypeJobs()
{

    String jobConfigUid = "jsdhJSJHD";
    Mockito.when( jobConfigurationService.getJobConfigurationByUid( Mockito.eq( jobConfigUid ) ) )
        .thenReturn( analyticsTableJobConfig );
    Mockito.when( schedulingManager.getJob( Mockito.eq( JobType.ANALYTICSTABLE_UPDATE ) ) )
        .thenReturn( job );
    JobConfiguration jobConfiguration = new JobConfiguration();
    jobConfiguration.setUid( jobConfigUid );
    jobConfiguration.setJobType( JobType.ANALYTICSTABLE_UPDATE );
    jobConfiguration.setEnabled( true );
    List<ErrorReport> errorReports = hook.validateInternal( jobConfiguration );
    Assert.assertEquals( 1, errorReports.size() );
    Assert.assertEquals( ErrorCode.E7004, errorReports.get( 0 ).getErrorCode() );
}