We have generated a mock server and would like to use it for component tests, i.e. the mock server is used by the “component under test”.
We’d like to make the mocked server return different responses for the same request.
For example, during the same testing run, we’d like it to return some JSON object for the first time it’s called, and for the second time we’d like for the request to fail and for the mock server to return status 400.
Can it be done with Prism mock server?