public void ContentBlockWidget_UnshareFunctionality()
        {
            string pageNamePrefix  = "ContentBlockPage";
            string pageTitlePrefix = "Content Block";
            string urlNamePrefix   = "content-block";
            int    pageIndex       = 1;
            var    contentManager  = ContentManager.GetManager();
            var    contentItem     = contentManager.GetContent()
                                     .Single(c => c.Status == Telerik.Sitefinity.GenericContent.Model.ContentLifecycleStatus.Live && c.Title == ContentBlockTitle);

            var mvcProxy = new MvcControllerProxy();

            mvcProxy.ControllerName = typeof(ContentBlockController).FullName;
            var contentBlockController = new ContentBlockController();

            contentBlockController.Content         = ContentBlockContent;
            contentBlockController.SharedContentID = contentItem.Id;
            mvcProxy.Settings = new ControllerSettings(contentBlockController);

            var pageId = this.pageOperations.CreatePageWithControl(mvcProxy, pageNamePrefix, pageTitlePrefix, urlNamePrefix, pageIndex);

            PageContentGenerator.ModifyPageControl(
                pageId,
                c => c.ObjectType == mvcProxy.GetType().FullName,
                (c) =>
            {
                var manager            = PageManager.GetManager();
                mvcProxy               = manager.LoadControl(c) as MvcControllerProxy;
                contentBlockController = (ContentBlockController)mvcProxy.Controller;
                contentBlockController.SharedContentID = Guid.Empty;
                mvcProxy.Settings = new ControllerSettings(contentBlockController);
                manager.ReadProperties(mvcProxy, c);
            });

            Assert.AreEqual(0, contentManager.GetCountOfPagesThatUseContent(contentItem.Id));
        }