@Test
    public void testInstanceAttributeOverride() {
        InstanceAttributeOverrideV2<FieldScope> instanceOverride = (node, _field, _context) -> node.put("$comment", "test");
        Assertions.assertSame(this.instance, this.instance.withInstanceAttributeOverride(instanceOverride));

        List<InstanceAttributeOverrideV2<FieldScope>> instanceOverrideList = this.instance.getInstanceAttributeOverrides();
        Assertions.assertEquals(1, instanceOverrideList.size());
        Assertions.assertSame(instanceOverride, instanceOverrideList.get(0));
    }
Test for the {@link SchemaGeneratorConfigPart} class.
jsonschema-generator/src/test/java/com/github/victools/jsonschema/generator/SchemaGeneratorConfigPartTest.java