@Test
    public void testGetFieldAttributeOverrides() {
        InstanceAttributeOverrideV2<FieldScope> instanceOverride = (node, field, _context) -> node.put("$comment", field.getName());
        Mockito.when(this.fieldConfigPart.getInstanceAttributeOverrides()).thenReturn(Collections.singletonList(instanceOverride));

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