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_has_based_uuid.rb
    path of file: ./repos/based_uuid/test
    
    the code of the file until where you have to start completion: require "test_helper"
require "ostruct"
require "secur
    
  def test_find_by_based_uuid_for_custom_uuid_columns
    session = Session.create(session_id: SecureRandom.uuid)

    Session.find_by_based_uuid(session.based_uuid).tap do |found_session|
      assert_equal session, found_session
    end
  end