func (p *PubSubStub) Topic(id string) *pubsub.Topic {
	return p.StubbedTopic
}
Topic returns a reference to a topic.
package stubs
import (
	"context"
	"cloud.google.com/go/pubsub"
)
type PubSubStub struct {
	StubbedTopic     *pubsub.Topic
	PublishedMessage *pubsub.Message
}