public function testAcknowledgeBatch()
{
$snippet = $this->snippetFromMethod(Subscription::class, 'acknowledgeBatch');
$snippet->addLocal('subscription', $this->subscription);
$this->connection->pull(Argument::any())->shouldBeCalled()->willReturn(['receivedMessages' => [['message' => ['data' => 'hello world']]]]);
$this->connection->acknowledge(Argument::any())->shouldBeCalled();
$this->subscription->setConnection($this->connection->reveal());
$res = $snippet->invoke();
}