### Question:
AsyncApiGenerator { public static AsyncApiBaseBuilder builder() { return new Builder(); } private  AsyncApiGenerator(); static AsyncApiBaseBuilder builder();  }### Answer:
@Test public void shouldGenerateAsyncApi() throws IOException, URISyntaxException { String actual = AsyncApiGenerator.builder() .withAsyncApiBase(getClass().getResource("/asyncapi_template.yaml")) .withSchema("./schema.json", BaseEvent.class) .generateYaml(); String expected = TestUtil.readResource("/asyncapi_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); }