@ParameterizedTest
    @MethodSource("parametersForTestJsonIgnoreProperties")
    public void testJsonIgnoreProperties(Class<?> targetType, String expectedIncludedPropertyNames) throws JsonProcessingException {
        SchemaGeneratorConfig config = new SchemaGeneratorConfigBuilder(SchemaVersion.DRAFT_2020_12, OptionPreset.PLAIN_JSON)
                .with(Option.FORBIDDEN_ADDITIONAL_PROPERTIES_BY_DEFAULT)
                .with(new JacksonModule())
                .build();
        SchemaGenerator generator = new SchemaGenerator(config);
        JsonNode result = generator.generateSchema(targetType);

        JsonNode propertiesNode = result.get(config.getKeyword(SchemaKeyword.TAG_PROPERTIES));
        Set<String> propertyNames = new TreeSet<>();
        propertiesNode.fieldNames().forEachRemaining(propertyNames::add);
        Assertions.assertEquals(expectedIncludedPropertyNames, propertyNames.toString());
    }
Test for the ignored properties being exclude as expected.
jsonschema-module-jackson/src/test/java/com/github/victools/jsonschema/module/jackson/IgnorePropertyTest.java