public function testCreateUserSucceeds()
 {
     $passwordHash = 'Corned beef password hash';
     $this->dao->expects($this->once())->method('createUser')->with($this->user['email'], $this->matchesRegularExpression('/^\\$2y\\$10\\$[a-zA-Z0-9\\.\\/]*$/'))->will($this->returnValue($this->user));
     $user = $this->service->createUser($this->user['email'], 'password', 'password');
     $this->assertEquals($this->user, $user);
 }