@ParameterizedTest
    @MethodSource("annotationLookupScenarios")
    void resolveAnnotation_AnnotatedElement_respects_annotationLookupScenarios(Class<?> annotatedClass, Optional<String> expectedAnnotationValue) {
        Optional<String> value = AnnotationHelper.resolveAnnotation(annotatedClass, TargetAnnotation.class, metaAnnotationPredicate()).map(TargetAnnotation::value);
        Assertions.assertEquals(expectedAnnotationValue, value);
    }
Unit test class dedicated to the validation of {@link AnnotationHelper}.
jsonschema-generator/src/test/java/com/github/victools/jsonschema/generator/AnnotationHelperTest.java