def METHOD_NAME(self):
    self.resource.model.collection_id
    message = "`collection_id` is deprecated, use `resource_name` instead."
    self.mocked_warnings.assert_called_with(message, DeprecationWarning)