public function testDeleteVersionThrowsUnauthorizedException()
{
$contentService = $this->repository->getContentService();
$contentInfo = $contentService->loadContentInfo(4);
// Create a version to delete
$draftContent = $contentService->createContentDraft($contentInfo);
// Set anonymous as current user
$this->repository->setCurrentUser($this->getStubbedUser(10));
$contentService->deleteVersion($draftContent->versionInfo);
}