socialDocument = toSocialDocument(newsItem);
DocumentModel exposedDocument = socialDocument.getRestrictedDocument();
assertEquals(initialExposedDocument.getId(), exposedDocument.getId());
assertEquals("Test1", exposedDocument.getPropertyValue("dc:title"));
socialDocument.makePublic();
exposedDocument = socialDocument.getPublicDocument();
assertEquals("Test1", exposedDocument.getPropertyValue("dc:title"));
assertEquals(initialExposedDocument.getId(), exposedDocument.getId());
newsItem = updateTitle(newsItem, "Test2");