/**
  * Test setCookieModels method.
  */
 public function testSetCookieModels()
 {
     $cookieInjector = new CookieInjector();
     $cookieName = 'test';
     $cookieModel = new GenericCookie($cookieName);
     $cookieInjector->setCookieModels([$cookieModel]);
     $this->assertCount(1, $cookieInjector->getCookieModels());
 }
 /**
  * OnKernelResponse.
  *
  * @param FilterResponseEvent $event
  */
 public function onKernelResponse(FilterResponseEvent $event)
 {
     $this->cookieInjector->update($event->getResponse());
 }