@ParameterizedTest
    @MethodSource("parametersForTestIsNullable")
    public void testIsNullableMethod(Boolean configResult, boolean optionEnabled, boolean expectedResult) {
        MethodScope method = this.getTestClassMethod("getField");
        Mockito.when(this.methodConfigPart.isNullable(method)).thenReturn(configResult);
        if (optionEnabled) {
            this.enabledOptions.add(Option.NULLABLE_METHOD_RETURN_VALUES_BY_DEFAULT);
        }
        boolean result = this.instance.isNullable(method);
        Assertions.assertEquals(expectedResult, result);
    }
Test for the {@link SchemaGeneratorConfigImpl} class.
jsonschema-generator/src/test/java/com/github/victools/jsonschema/generator/impl/SchemaGeneratorConfigImplTest.java