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: active_record_associations_persisted_test.rb
    path of file: ./repos/universalid/test/universalid/extensions/active_record
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

class UniversalID::Packer::ActiveRecordAssociationsPersistedTest < Minitest::Test
  def test_pack_unpack
    expected = Campaign.forge! emails: 3, attachments: 2
    load_has_many expected, d
    
  def test_global_id
    expected = Campaign.forge! emails: 3, attachments: 2
    load_has_many expected, depth: 2

    gid = URI::UID.build(expected).to_gid_param
    uid = URI::UID.from_gid(gid)
    actual = uid.decode

    assert_has_many_loaded expected, depth: 2
    assert expected.persisted?
    refute_has_many_loaded actual
    assert_record expected, actual
  end