public function testResetPassword()
{
$passwordMock = $this->getMockPassword(['resetPasswordConfirm']);
$passwordMock->expects($this->once())->method('resetPasswordConfirm')->will($this->returnValue(true));
$this->setService('access_control.password', $passwordMock);
$this->setRequest(Request::create('/bolt/resetpassword'));
$response = $this->controller()->resetPassword($this->getRequest());
$this->assertRegExp('|Redirecting to /bolt/login|', $response->getContent());
}