private FieldScope getField(ResolvedField[] fields, String fieldName) {
        return Stream.of(fields)
                .filter(field -> fieldName.equals(field.getName()))
                .findAny()
                .map(field -> this.context.createFieldScope(field, this.declarationDetails))
                .get();
    }
Helper class for constructing {@link FieldScope} and {@link MethodScope} instances in tests.
jsonschema-module-javax-validation/src/test/java/com/github/victools/jsonschema/module/javax/validation/TestType.java