forRestTemplate

Return RequestExpectationManager to be used for binding with the specified RestTemplate. If the RestTemplate is using a RootUriTemplateHandler then a RootUriRequestExpectationManager is returned, otherwise the source manager is returned unchanged.

Return

a RequestExpectationManager to be bound to the template

Parameters

restTemplate

the source REST template

expectationManager