Add code for mocking external resources