@Test
    public void testIgnoreCheck() {
        Assertions.assertFalse(this.instance.shouldIgnore(this.field1));

        Assertions.assertSame(this.instance, this.instance.withIgnoreCheck(member -> member == this.field1));
        Assertions.assertTrue(this.instance.shouldIgnore(this.field1));
        Assertions.assertFalse(this.instance.shouldIgnore(this.field2));

        Assertions.assertSame(this.instance, this.instance.withIgnoreCheck(member -> member == this.field2));
        Assertions.assertTrue(this.instance.shouldIgnore(this.field1));
        Assertions.assertTrue(this.instance.shouldIgnore(this.field2));
        Assertions.assertFalse(this.instance.shouldIgnore(this.field3));
    }
Test for the {@link SchemaGeneratorConfigPart} class.
jsonschema-generator/src/test/java/com/github/victools/jsonschema/generator/SchemaGeneratorConfigPartTest.java