I am using a 3rd party API to manage my uploaded images, I have abstracted this API with my own class, and also written class to test file upload, but the files get uploaded to the web every time I run the test, I will like to prevent this and use mock to test that the upload function is being called instead.
How do I go about this?