protected function setUp()
{
parent::setUp();
$this->userService = $this->getMock('eZ\\Publish\\API\\Repository\\UserService');
$this->repository = $this->getMock('eZ\\Publish\\API\\Repository\\Repository');
$this->repository->expects($this->any())->method('getUserService')->will($this->returnValue($this->userService));
$this->userProvider = new Provider($this->repository);
}