It's great to be able to return different responses for test purposes, and it looks like the way you're thinking about it is to write out a new response file each time you see a request, even if those requests are the same.

Let's say you're creating a new unit test. How would you control what data gets returned in a response?

Right now, it looks like you would copy the response file and edit it by hand to create a new unit test. That's great as a starting point!

I think it would be great for our framework to support this scenario: "Instantiate a particular response template, substitute these parameters in the template with these values, and return this response on the next request from the code being unit tested."

Anyway, for this particular code block, I think it would be great to pass in the naming function to the framework. What do you think?