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: datastore_segment_test.rb
    path of file: ./repos/newrelic-ruby-agent/test/new_relic/agent/transaction
    
    the code of the file until where you have to start completion: # This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details.
# frozen_string_literal: true

require_relative '../../../test_helper'
require 'new_relic/agent/transaction/datastore_segment'

module NewRelic
  module Agent
    class Transaction
      class DatastoreSegmentTest < Minitest::Test
        def setup
          @ad
    
        def test_add_instance_identifier_segment_parameter
          segment = nil

          in_transaction do
            segment = NewRelic::Agent::Tracer.start_datastore_segment(
              product: 'SQLite',
              operation: 'select',
              host: 'jonan-01',
              port_path_or_id: '1337807'
            )
            advance_process_time(1)
            segment.finish
          end

          sample = last_transaction_trace
          node = find_node_with_name(sample, segment.name)

          assert_equal 'jonan-01', node.params[:host]
          assert_equal '1337807', node.params[:port_path_or_id]
        end