@Test
    public void testCreateStandardDefinitionReferenceForField_withCustomPropertyDefinition() {
        Mockito.doReturn(new CustomPropertyDefinition(this.contextImpl.getGeneratorConfig().createObjectNode().put("$comment", "custom property")))
                .when(this.contextImpl.getGeneratorConfig())
                .getCustomDefinition(Mockito.any(FieldScope.class), Mockito.any(), Mockito.any());
        FieldScope targetField = this.getTestClassField("booleanField");
        ObjectNode result = this.contextImpl.createStandardDefinitionReference(targetField, null);
        Assertions.assertEquals("{\"$comment\":\"custom property\",\"title\":\"Field Title\",\"description\":\"Type Description\"}", result.toString());
    }
Test for the {@link SchemaGenerationContextImpl} class.
jsonschema-generator/src/test/java/com/github/victools/jsonschema/generator/impl/SchemaGenerationContextImplTest.java