@ParameterizedTest
    @MethodSource("parametersForTestFindGetter")
    public void testFindGetter(String fieldName, String fieldNameOverride, String methodName) throws Exception {
        FieldScope field = this.getTestClassField(fieldName)
                .withOverriddenName(fieldNameOverride);
        MethodScope getter = field.findGetter();

        if (methodName == null) {
            Assertions.assertNull(getter);
        } else {
            Assertions.assertNotNull(getter);
            Assertions.assertEquals(methodName, getter.getName());
        }
    }
Test for the {@link FieldScope} class.
jsonschema-generator/src/test/java/com/github/victools/jsonschema/generator/FieldScopeTest.java