public function testShouldPerformAuthorizationUsingControllerActionAndNonLoadedModel()
{
$this->params = array_merge($this->params, array_merge(['action' => 'show', 'id' => '123']));
$this->controller->shouldReceive('authorize')->once()->with('show', 'Project')->andThrow('Efficiently\\AuthorityController\\Exceptions\\AccessDenied');
$resource = new Efficiently\AuthorityController\ControllerResource($this->controller);
$resource->authorizeResource();
}