You are developing an application that uses Google Cloud Pub/Sub to process user actions. You need to implement an integration test to verify that your application publishes the correct message payload to a topic when a user action occurs. The tests should be cost-effective and isolated from production systems. What should you do?