@ParameterizedTest
    @ValueSource(booleans = {true, false})
    public void testIsRequiredMethod(boolean configuredAndExpectedResult) {
        MethodScope method = this.getTestClassMethod("getField");
        Mockito.when(this.methodConfigPart.isRequired(method)).thenReturn(configuredAndExpectedResult);
        boolean result = this.instance.isRequired(method);
        Assertions.assertEquals(configuredAndExpectedResult, result);
    }
Test for the {@link SchemaGeneratorConfigImpl} class.
jsonschema-generator/src/test/java/com/github/victools/jsonschema/generator/impl/SchemaGeneratorConfigImplTest.java