/**
  * @test
  */
 public function createUserShouldSerializeAndDelegateCreationToClient()
 {
     $serialized = [];
     $user = $this->anUser();
     $this->serializer->expects($this->once())->method('serialize')->with($user)->willReturn($serialized);
     $this->client->expects($this->once())->method('createUser')->with($serialized);
     $this->manager->createUser($user);
 }
 /**
  * Sends a user to Intercom API
  *
  * @api
  *
  * @param UserInterface $user
  */
 public function createUser(UserInterface $user)
 {
     $this->client->createUser($this->serializer->serialize($user));
 }