public function testLoginWrongPassword()
{
$app = $this->getApp();
$this->addDefaultUser($app);
$logger = $this->getMockMonolog();
$logger->expects($this->atLeastOnce())->method('info')->with($this->equalTo("Failed login attempt for 'Admin'."));
$app['logger.system'] = $logger;
$logger = $this->getMockFlashLogger();
$logger->expects($this->atLeastOnce())->method('error')->with($this->equalTo('Username or password not correct. Please check your input.'));
$app['logger.flash'] = $logger;
$app['request_stack']->push(new Request());
$login = new Login($app);
$response = $login->login('admin', 'sneaky', new AccessControlEvent(new Request()));
$this->assertFalse($response);
}