public function testLast()
{
$lastConversations = array("1" => ["result"]);
$res = $this->createApiResponse(array('data' => $lastConversations, 'error' => null));
$this->mock->expects($this->at(1))->method('exec')->willReturn($res);
$this->mock->expects($this->at(3))->method('exec')->willReturn(null);
$this->assertEquals($lastConversations, $this->provider->last());
$this->assertFalse($this->provider->last());
}