Isn't WebClient/WebTestClient preferable instead of RestTemplate/TestRestTemplate?
Since the documentation in the latest states that:
As of 6.1, RestClient offers a more modern API for synchronous HTTP access.
I'm wondering if it isn't better to show examples using WebClient/WebTestClient at https://spring.io/guides/gs/testing-web.
If that is the case, are you willing to accept a PR?