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: test_gem_source_lock.rb
    path of file: ./repos/truffleruby/test/mri/tests/rubygems
    
    the code of the file until where you have to start completion: # frozen_string_lit
    
  def test_equals2
    git    = Gem::Source::Git.new "a", "git/a", nil, false
    g_lock = Gem::Source::Lock.new git

    installed = Gem::Source::Installed.new
    i_lock    = Gem::Source::Lock.new installed

    assert_equal g_lock, g_lock
    refute_equal g_lock, i_lock
    refute_equal g_lock, Object.new
  end