public function testLoadContentThrowsUnauthorizedException() { // Set anonymous as current user $this->repository->setCurrentUser($this->getStubbedUser(10)); $this->repository->getContentService()->loadContent(4); }