ReservationClient { public Collection<Reservation> getReservations() { return this .restTemplate .exchange("http: new ParameterizedTypeReference<Collection<Reservation>>() { }) .getBody(); } ReservationClient(RestTemplate restTemplate); Collection<Reservation> getReservations();  }
@Test public void getReservations() throws Exception { Collection<Reservation> res = this.client.getReservations(); Assertions.assertThat(res.size()).isEqualTo(2); Assertions.assertThat(res.stream().filter(r -> r.getReservationName().equalsIgnoreCase("Jane")).count()).isEqualTo(1); }