public function testUnsecuredLogout()
{
$unsecuredLogoutListener = new FlexibleSslListener('auth', true, $this->dispatcher);
$response = new RedirectResponse('https://foo');
$request = $this->getMock('Symfony\\Component\\HttpFoundation\\Request');
$token = $this->getMock('Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface');
$unsecuredLogoutListener->logout($request, $response, $token);
$this->assertSame('http://foo', $response->headers->get('Location'));
}