public function testLoginInvalidUsername()
{
$app = $this->getApp();
$app['request_stack']->push(new Request());
$this->addDefaultUser($app);
$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;
$login = new Login($app);
$response = $login->login('koala', 'sneaky', new AccessControlEvent(new Request()));
$this->assertFalse($response);
}