protected FieldScope getTestClassField(String fieldName) {
        ResolvedField resolvedField = Stream.of(this.declarationDetails.getDeclaringTypeMembers().getMemberFields())
                .filter(field -> fieldName.equals(field.getName()))
                .findAny()
                .orElseGet(
                        () -> Stream.of(this.declarationDetails.getDeclaringTypeMembers().getStaticFields())
                                .filter(field -> fieldName.equals(field.getName()))
                                .findAny()
                                .get());
        return this.context.getTypeContext().createFieldScope(resolvedField, this.declarationDetails);
    }
Override generation context mock methods that are version dependent.

@param schemaVersion designated JSON Schema version
jsonschema-generator/src/test/java/com/github/victools/jsonschema/generator/AbstractTypeAwareTest.java