public function testApiInvoke_CallsSendMethodWithPromise()
{
$rep = $this->createResponse($this->createProtocol(), 'secret', [], ['send']);
$rep->expects($this->once())->method('send')->will($this->returnCallback(function ($promise) {
$this->assertInstanceOf(PromiseInterface::class, $promise);
return $promise;
}));
$rep();
}