function it_returns_null_if_user_doesnt_exist(TaskstackUserInterface $user, HttpAdapter $http)
 {
     $user->getEmail()->willReturn('*****@*****.**');
     $user->getUsername()->willReturn('NobbyNew');
     $user->getFullname()->willReturn('Nobby New');
     $http->get("api/users/new@test.com", [], ["api-key" => "mykey"])->willThrow('Symfony\\Component\\HttpKernel\\Exception\\HttpException');
     $this->getUser($user)->shouldReturn(null);
 }
 protected function get($resource, array $request = [], array $headers = [])
 {
     $headers['api-key'] = $this->key;
     return $this->http->get($resource, $request, $headers);
 }