WebApiPublicController { @GetMapping("greet") public Mono<Map> greet() { return Mono.just(Map.of("greet", "Hi everybody")); }  @GetMapping("greet") Mono<Map> greet();  }
@Test public void greet() { webTestClient .get() .uri("/public/greet") .exchange() .expectStatus().isOk() .expectBody().json("{\"greet\":\"Hi everybody\"}"); }