@Test
    public void testCreateStandardDefinitionReferenceForField_withCustomTypeDefinitionExcludingAttributes() {
        ObjectNode customNode = this.contextImpl.getGeneratorConfig().createObjectNode().put("$comment", "custom type");
        Mockito.doReturn(new CustomDefinition(customNode, CustomDefinition.INLINE_DEFINITION, CustomDefinition.EXCLUDING_ATTRIBUTES))
                .when(this.contextImpl.getGeneratorConfig())
                .getCustomDefinition(Mockito.any(ResolvedType.class), Mockito.any(), Mockito.any());
        FieldScope targetField = this.getTestClassField("booleanField");
        ObjectNode result = this.contextImpl.createStandardDefinitionReference(targetField, null);
        Assertions.assertEquals("{\"allOf\":[{\"$comment\":\"custom type\"},{\"title\":\"Field Title\"}]}", result.toString());
    }
Test for the {@link SchemaGenerationContextImpl} class.
jsonschema-generator/src/test/java/com/github/victools/jsonschema/generator/impl/SchemaGenerationContextImplTest.java