public function testCreateThrowsUnauthorizedException()
{
$mockedService = $this->getPartlyMockedURLWildcardService();
$repositoryMock = $this->getRepositoryMock();
$repositoryMock->expects($this->once())->method('hasAccess')->with($this->equalTo('content'), $this->equalTo('urltranslator'))->will($this->returnValue(false));
$mockedService->create('lorem/ipsum', 'opossum', true);
}