public function testItSetsAccessControlAllowHeadersOnValidActualRequestWhenFlagIsSet()
{
$_SERVER['HTTP_ORIGIN'] = 'http://bar.com';
$allowedHeaders = 'Origin, No-Cache, X-Requested-With, If-Modified-Since, Pragma';
$this->application->getDI()->getCors()->preflightRequests('true', 'GET, POST, PUT', $allowedHeaders);
$this->assertEquals($allowedHeaders, $this->response->getHeaders()->get('Access-Control-Allow-Headers'));
}