# Unit testing the new spring RestClient

**URL:** <https://discuss.kotlinlang.org/t/unit-testing-the-new-spring-restclient/27747>\
**Category:** Uncategorized\
**Created:** [December 3, 2023, 12:10am UTC](https://discuss.kotlinlang.org/t/unit-testing-the-new-spring-restclient/27747 "2023-12-03T00:10:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tony.ob](https://avatars.discourse-cdn.com/v4/letter/t/a3d4f5/32.png) [@tony.ob](https://discuss.kotlinlang.org/u/tony.ob)\
**Post date:** [December 3, 2023, 12:10am UTC](https://discuss.kotlinlang.org/t/unit-testing-the-new-spring-restclient/27747/1 "2023-12-03T00:10:41Z")

</div>

with RestTemplate I use MockRestServiceServer to unit test my code, is there a similar Mock server for RestClient? Any examples you can link to or share?
