def test_get_object_of_record__dexterity(self):
        doc = create(Builder('dx type').titled(u'Foo'))
        record = ActivityRecord(doc, 'added')

        self.assertEquals(doc, record.get_object())

        aq_parent(aq_inner(doc)).manage_delObjects([doc.getId()])
        self.assertEquals(None, record.get_object(),
                          'get_object should return None if the object is deleted.')

        create(Builder('dx type').titled(u'Foo'))
        self.assertEquals(None, record.get_object(),
                          'get_object should return None when the object at the path'
                          ' is not the same object.')