def METHOD_NAME(self, *args, **kwargs):
    self.resource.model.create_object({"id": "abc"})
    self.resource.model.get_record(record_id="abc")
    message = "`get_record()` is deprecated, use `get_object()` instead."
    self.mocked_warnings.assert_called_with(message, DeprecationWarning)