@BeforeEach
    public void setUp() {
        this.instance = new ConstantValueModule();
        this.builder = Mockito.mock(SchemaGeneratorConfigBuilder.class);
        this.fieldConfigPart = Mockito.spy(new SchemaGeneratorConfigPart<>());
        Mockito.when(builder.forFields()).thenReturn(this.fieldConfigPart);
        this.prepareContextForVersion(SchemaVersion.DRAFT_2019_09);
    }
Test for the {@link ConstantValueModule} class.
jsonschema-generator/src/test/java/com/github/victools/jsonschema/generator/impl/module/ConstantValueModuleTest.java