You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: keyword_argument_matching_test.rb
    path of file: ./repos/mocha/test/acceptance
    
    the code of the file until where you have to start completion: require File.expand_path('../acceptance_test_helper', __FILE__)

require 'deprecation_disabler'
req
    
  def test_should_match_splatted_hash_parameter_with_hash_matcher
    test_result = run_as_test do
      mock = mock()
      mock.expects(:method).with(has_key(:key))
      mock.method(**{ key: 42 })
    end
    assert_passed(test_result)
  end