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