@Test
    public void testApplyToConfigBuilder() {
        Predicate<FieldScope> ignoreCheck = field -> true;
        FieldExclusionModule module = new FieldExclusionModule(ignoreCheck);
        module.applyToConfigBuilder(this.builder);

        Mockito.verify(this.builder).forFields();
        Mockito.verifyNoMoreInteractions(this.builder);
        Mockito.verify(this.fieldConfigPart).withIgnoreCheck(ignoreCheck);
        Mockito.verifyNoMoreInteractions(this.fieldConfigPart);
    }
Test for the {@link FieldExclusionModule} class.
jsonschema-generator/src/test/java/com/github/victools/jsonschema/generator/impl/module/FieldExclusionModuleTest.java