@ParameterizedTest
    @CsvSource({
        "calculateSomething, false",
        "getFieldWithPrivateGetter, true",
        "getFieldWithPublicGetter, false",
        "isFieldWithPublicBooleanGetter, true"
    })
    public void testGetAnnotationConsideringFieldAndGetter(String methodName, boolean annotationExpectedToBeFound) {
        MethodScope method = this.getTestClassMethod(methodName);
        TestAnnotation annotation = method.getAnnotationConsideringFieldAndGetter(TestAnnotation.class);

        if (annotationExpectedToBeFound) {
            Assertions.assertNotNull(annotation);
        } else {
            Assertions.assertNull(annotation);
        }
    }
Test for the {@link MethodScope} class.
jsonschema-generator/src/test/java/com/github/victools/jsonschema/generator/MethodScopeTest.java