public function testGetCurrentUser()
 {
     $expected = new User();
     $response = $this->getMock(ResponseInterface::class);
     $this->http->expects($this->any())->method('get')->with('/v2/user', ['foo' => 'bar'])->willReturn($response);
     $this->mapper->expects($this->any())->method('toUser')->willReturn($expected);
     $actual = $this->client->getCurrentUser(['foo' => 'bar']);
     $this->assertSame($expected, $actual);
 }
 public function testUpdateCurrentUser()
 {
     $user = $this->client->getCurrentUser();
     $user->setName('John Doe' === $user->getName() ? 'Jane Doe' : 'John Doe');
     $this->client->updateCurrentUser($user);
 }