As of https://github.com/spring-projects/spring-framework/pull/34428, Spring Framework has a RestTestClient that aligns with WebTestClient. It supports testing real servers using RestClient as a transport, but also testing mock setups with MockMvc. Assertions and features are aligned with the latest in Framework (like API versioning).

We should consider whether we should deprecate TestRestTemplate as a result.

Comment From: Pankraz76

Assuming it's equivalent and ready for replacement: If this is just a simple deprecation accompanying the API/class migration, let me know. This should be manageable. Thanks.