public function testPublishBatch()
{
$snippet = $this->snippetFromMethod(Topic::class, 'publishBatch');
$snippet->addLocal('topic', $this->topic);
$this->connection->publishMessage(Argument::any())->shouldBeCalled();
$this->topic->setConnection($this->connection->reveal());
$snippet->invoke();
}