public function testItSetsAccessControlAllowMethodsOnValidActualRequestWhenFlagIsSet()
{
$_SERVER['HTTP_ORIGIN'] = 'http://api-v2.bar.com';
$allowMethods = 'GET, POST, PUT';
$this->application->getDI()->getCors()->preflightRequests('true', $allowMethods);
$this->assertEquals($allowMethods, $this->response->getHeaders()->get('Access-Control-Allow-Methods'));
}