public function testRedirectLocation()
{
$app = $this->getApp();
$request = Request::create('/');
$app->handle($request);
$app['request'] = $request;
$response = Library::redirect('login');
$this->assertInstanceOf('\\Symfony\\Component\\HttpFoundation\\RedirectResponse', $response);
$this->assertRegExp('|Redirecting to /bolt/login|', $response->getContent());
$this->assertTrue($response->isRedirect(), "Response isn't a valid redirect condition.");
}