def METHOD_NAME(self):
    self.portal.invokeFactory("Document", id="doc1", title="doc1")
    doc1 = self.portal["doc1"]
    self.portal.invokeFactory("Document", id="doc2", title="doc2")
    doc2 = self.portal["doc2"]
    intids = getUtility(IIntIds)
    doc1.relatedItems = PersistentList()
    doc1.relatedItems.append(RelationValue(intids.getId(doc2)))
    modified(doc1)
    # TODO: simplify when relation-support is merged into plone.api
    # api.relation.create(doc1, doc2, 'relatedItems')
    stats, broken = get_relations_stats()
    self.assertEqual(dict(stats), {"relatedItems": 1})
    self.assertEqual(dict(broken), {})
    view = getMultiAdapter((self.portal, self.request), name="inspect-relations")
    self.assertTrue(view())
    self.assertTrue(view(relation="relatedItems"))