def METHOD_NAME(
    self, patched_get_resource_summary, patched_remote_invoke_executor_factory
):
    patched_get_resource_summary.return_value = Mock(resource_type=SUPPORTED_SERVICES["lambda"])
    mocked_remote_invoke_executor_factory = Mock()
    patched_remote_invoke_executor_factory.return_value = mocked_remote_invoke_executor_factory
    mocked_remote_invoke_executor = Mock()
    mocked_remote_invoke_executor_factory.create_remote_invoke_executor.return_value = mocked_remote_invoke_executor
    given_input = Mock()
    with self._get_remote_invoke_context() as remote_invoke_context:
        remote_invoke_context.run(given_input)
        mocked_remote_invoke_executor_factory.create_remote_invoke_executor.assert_called_once()
        mocked_remote_invoke_executor.execute.assert_called_with(given_input)