For a particular scenario where my needs are expected: A java command line app that enables a RestController which forwards the request to a remote domain. Depending on arguments it initializes the server with some local request.
So, how can I perform a proper E2E with MockRestServiceServer, expecting that the localhost calls (done by the app, not by the test) are whitelisted and not accounted as expectations, and only the forwarded responder is mocked?
P.S> Currently I am using 2 restTemplates for intra/outerdomains but I don't like this solution and I am interested on the feasibility of allowing some actual calls with MockRestServiceServer. If only I could make mockRestServiceServer.expect(requestTo(localCall)); (actual response)...