@Test
    public void testWithObjectMapper() {
        ObjectMapper currMapper = this.builder.getObjectMapper();
        ObjectMapper newMapper = new ObjectMapper();
        this.builder.withObjectMapper(newMapper);
        Assertions.assertSame(newMapper, this.builder.getObjectMapper());
        Assertions.assertNotEquals(currMapper, this.builder.getObjectMapper());
    }
Test for the {@link SchemaGeneratorConfigBuilder} class.
jsonschema-generator/src/test/java/com/github/victools/jsonschema/generator/SchemaGeneratorConfigBuilderTest.java