ReservationClient { public Flux<Reservation> getAllReservations() { return this.webClient .get() .uri("http: .retrieve() .bodyToFlux(Reservation.class); } ReservationClient(WebClient webClient); Flux<Reservation> getAllReservations();  }
@Test public void getAllReservations() { Flux<Reservation> reservations = this.reservationClient .getAllReservations(); StepVerifier .create(reservations) .expectNextMatches(r -> StringUtils.hasText(r.getId()) && StringUtils.hasText(r.getReservationName())) .expectNextMatches(r -> StringUtils.hasText(r.getId()) && StringUtils.hasText(r.getReservationName())) .verifyComplete(); }