Spring MockRestServiceServer handling multiple requests to the same URI (auto-discovery)
问题 Let's say I am writing Spring integration tests for a REST service A. This service in turn hits another REST service B and gets a list of URIs to hit on REST service C. It is kind of auto-discovery pattern. I want to mock B and C responses using MockRestServiceServer. Now the response from B is a list of URIs, they are all very similar, and for the sake of the example lets say my response from B is like so: { uris: ["/stuff/1.json", "/stuff/2.json", "/stuff/39.json", "/stuff/47.json"] }