/**
  * @covers \ZF\HttpCache\HttpCacheListener::onResponse
  * @dataProvider onResponseDataProvider
  *
  * @param array  $config
  * @param string $method
  * @param array  $routeMatch
  * @param array  $exHeaders
  */
 public function testOnResponse(array $config, $method, array $routeMatch, array $exHeaders)
 {
     $request = new HttpRequest();
     $request->setMethod($method);
     $event = new MvcEvent();
     $event->setRequest($request);
     $event->setRouteMatch($this->createRouteMatch($routeMatch));
     $response = new HttpResponse();
     $event->setResponse($response);
     $this->instance->setConfig($config);
     $this->instance->onRoute($event);
     $this->instance->onResponse($event);
     $headers = $event->getResponse()->getHeaders();
     $this->assertSame($exHeaders, $headers->toArray());
 }