public function testOnPreSaveSetPasswordHash()
{
$this->storageEvent->getContent()->willReturn($this->user->reveal());
$this->user->getPassword()->willReturn('password');
$this->passwordFactory->createHash('password', Argument::type('string'))->willReturn('hashedpassword');
$this->user->setPassword('hashedpassword')->shouldBeCalled();
$this->listener->onUserEntityPreSave($this->storageEvent->reveal());
}