@ParameterizedTest
    @CsvSource({
        "getCalculatedValue, false, getCalculatedValue()",
        "isBehavingSomehow, false, isBehavingSomehow()",
        "getxIndex, false, getxIndex()",
        "isURL, false, isURL()",
        "getCalculatedValue, true, calculatedValue",
        "isBehavingSomehow, true, behavingSomehow",
        "getxIndex, true, xIndex",
        "isURL, true, URL",
    })
    public void testGetSchemaPropertyName(String methodName, boolean deriveFieldNameFromArgumentFreeMethod, String expectedPropertyName) {
        MethodScope method = this.getTestClassMethod(methodName);
        Mockito.when(this.getContext().getTypeContext().isDerivingFieldsFromArgumentFreeMethods())
                .thenReturn(deriveFieldNameFromArgumentFreeMethod);

        Assertions.assertEquals(expectedPropertyName, method.getSchemaPropertyName());
    }
Test for the {@link MethodScope} class.
jsonschema-generator/src/test/java/com/github/victools/jsonschema/generator/MethodScopeTest.java