@Test
    public void testApplyToConfigBuilder() {
        Predicate<MethodScope> ignoreCheck = method -> true;
        MethodExclusionModule module = new MethodExclusionModule(ignoreCheck);
        module.applyToConfigBuilder(this.builder);

        Mockito.verify(this.builder).forMethods();
        Mockito.verifyNoMoreInteractions(this.builder);
        Mockito.verify(this.methodConfigPart).withIgnoreCheck(ignoreCheck);
        Mockito.verifyNoMoreInteractions(this.methodConfigPart);
    }
Test for the {@link MethodExclusionModule} class.
jsonschema-generator/src/test/java/com/github/victools/jsonschema/generator/impl/module/MethodExclusionModuleTest.java