@Test
public void validateHardPassTimeout() {

    AdmissionValidator pass = new PassJobValidator();
    AdmissionValidator never = new NeverJobValidator(ValidationError.Type.HARD);
    AdmissionValidator validator = new AggregatingValidator(
            configuration,
            registry,
            Arrays.asList(pass, never));
    Mono<Set<ValidationError>> mono = validator.validate(MOCK_JOB);
    StepVerifier.create(mono)
            .expectNextMatches(errors -> errors.size() == 1)
            .verifyComplete();
    Set<ValidationError> errors = mono.block();
    validateTimeoutErrors(errors);
    validateErrorType(errors, ValidationError.Type.HARD);
}