def METHOD_NAME(self, mock_logger, mock_hook_registry):
    mock_hook_registry.registered_hooks = [self.hook]
    self.hook.post_transfer.assert_not_called()
    self.hook.post_transfer.side_effect = RuntimeError()
    post_transfer_handler(self.context)
    self.hook.post_transfer.assert_called()
    mock_logger.error.assert_called_once_with(
        "TestHook.post_transfer hook failed",
        exc_info=self.hook.post_transfer.side_effect,
    )