### Question:
JsonSchemaGenerator { public static SchemaBuilder builder() { return new Builder(); } private  JsonSchemaGenerator(); static SchemaBuilder builder();  }### Answer:
@Test public void shouldGenerateJsonSchema() throws IOException, URISyntaxException { String actual = JsonSchemaGenerator.builder().forClass(BaseEvent.class).generateYaml(); String expected = TestUtil.readResource("/schema_expected.yaml"); Map<String, Object> expectedJson = YamlUtil.load(expected, new TypeReference<Map<String, Object>>() {}); Map<String, Object> actualJson = YamlUtil.load(actual, new TypeReference<Map<String, Object>>() {}); assertThat(actualJson).isEqualToComparingFieldByFieldRecursively(expectedJson); }