public function testApiCall_CallsSendMethodWithPromise()
{
$req = $this->createRequest('name', 'secret', [], ['send']);
$req->expects($this->once())->method('send')->will($this->returnCallback(function ($promise) {
$this->assertInstanceOf(PromiseInterface::class, $promise);
return $promise;
}));
$req->call();
}