Endpoint 1: api/endpoint?foo_bar_fizz=buzz Endpoint 2: api/endpoint?foo=bar&fizz=buzz Getting possible mock file paths for both the endpoints will result in the same mock file: api/endpoint.foo-bar-fizz-buzz.mock I think changes need to be made in the getQueryFromRequst method in the ResponseBuilder.