@Test
void validateJob() {

    assertThatThrownBy(() -> config.validateJob("job", context -> {
    })).isInstanceOf(Error.class)
            .hasMessageContaining("job class must not be anonymous class or lambda");
}