Explain how you would write test cases for an application that relies heavily on third-party API integrations.