@Test
    public void testCreateStandardDefinitionReferenceForField_withCustomPropertyDefinitionExcludingAttributes() {
        ObjectNode customNode = this.contextImpl.getGeneratorConfig().createObjectNode().put("$comment", "custom property");
        Mockito.doReturn(new CustomPropertyDefinition(customNode, CustomDefinition.EXCLUDING_ATTRIBUTES))
                .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\"}", result.toString());
    }
Test for the {@link SchemaGenerationContextImpl} class.
jsonschema-generator/src/test/java/com/github/victools/jsonschema/generator/impl/SchemaGenerationContextImplTest.java