public function testNotifyInteractionWithCategories()
 {
     $history = new History();
     $this->client->getEmitter()->attach($history);
     $this->subscriber->addResponse(new Response(200, [], new Stream(fopen('data://text/plain,[]', 'r'))));
     $this->client->notifyInteraction('user', 'target-user', 'RATE', null, ['foo', 'bar']);
     $contents = $history->getLastRequest()->getBody()->__toString();
     $request = json_decode($contents, true);
     $this->assertEquals(['userId' => 'user', 'interactionCode' => 'RATE', 'targetUserId' => 'target-user', 'categories' => ['foo', 'bar']], $request);
 }