public function testUpdate()
{
$snippet = $this->snippetFromMethod(Sink::class, 'update');
$snippet->addLocal('sink', $this->sink);
$this->connection->updateSink(Argument::any())->shouldBeCalled();
$this->connection->getSink(Argument::any())->shouldBeCalled()->willReturn(['destination' => 'Foo']);
$this->sink->setConnection($this->connection->reveal());
$snippet->invoke();
}