@ParameterizedTest
    @ValueSource(classes = {TestClass.class, Foo.class})
    public void testIntegration(Class<?> rawTargetType) throws Exception {
        JsonNode result = this.generator.generateSchema(rawTargetType);

        String rawJsonSchema = result.toString();
        JSONAssert.assertEquals('\n' + rawJsonSchema + '\n',
                loadResource("integration-test-result-" + rawTargetType.getSimpleName() + ".json"), rawJsonSchema,
                JSONCompareMode.STRICT);
    }
Integration test of this module being used in a real SchemaGenerator instance.
jsonschema-module-swagger-2/src/test/java/com/github/victools/jsonschema/module/swagger2/IntegrationTest.java