@Test
public void testJsonSchemaGeneratorNonExistingDraft() throws IOException {

    assertThrows(IllegalArgumentException.class, () -> {
        JsonSchemaGenerator.ClassBuilder builder =
                new JsonSchemaGenerator.ClassBuilder(
                        Stream.of(PersonInputParams.class, PersonOutputParams.class, IgnoredClass.class))
                        .withSchemaNameFunction(c -> "pepe")
                        .withSchemaVersion("NON_EXISTING_DRAFT");
        builder.build().generate();
    });
}