@Test
    public void testGetMethodAttributeOverrides() {
        InstanceAttributeOverrideV2<MethodScope> instanceOverride = (node, method, _context) -> node.put("$comment", method.getName() + "()");
        Mockito.when(this.methodConfigPart.getInstanceAttributeOverrides()).thenReturn(Collections.singletonList(instanceOverride));

        List<InstanceAttributeOverrideV2<MethodScope>> result = this.instance.getMethodAttributeOverrides();
        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