AppDynamics interview question

How to mock requests and responses?