@Override
    public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {
        ReflectionUtils.doWithMethods(bean.getClass(), recurringJobFinderMethodCallback);
        return bean;
    }
@Test
    void beansWithMethodsAnnotatedWithRecurringAnnotationNoCronOrIntervalWillThrowException() {
        // GIVEN
        final RecurringJobPostProcessor recurringJobPostProcessor = getRecurringJobPostProcessor();

        // WHEN & THEN
        assertThatThrownBy(() -> recurringJobPostProcessor.postProcessAfterInitialization(new MyServiceWithRecurringJobWithoutCronAndInterval(), "not important"))
                .isInstanceOf(IllegalArgumentException.class);
    }