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: sinatra_parameter_capture_test.rb
    path of file: ./repos/newrelic-ruby-agent/test/multiverse/suites/sinatra
    
    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

class SinatraParameterCaptureTestApp < Sinatra::Base
  post '/capture_test' do
    'capture test'
  end

  post '/files' do
    'file uploaded'
  end
end

class SinatraParameterCaptureTest < Minitest::Test
  include Rack::Test::Methods
  include MultiverseHelpers

  setup_and_teardown_agent

  def app
    SinatraParameterCaptu
    
  def test_request_and_response_attributes_recorded_as_agent_attributes
    post('/capture_test')

    expected = {
      'response.headers.contentLength' => last_response.content_length.to_i,
      'response.headers.contentType' => last_response.content_type,
      'request.headers.contentLength' => last_request.content_length.to_i,
      'request.headers.contentType' => last_request.content_type,
      'request.headers.host' => last_request.host,
      'request.method' => last_request.request_method
    }
    actual = agent_attributes_for_single_event_posted_without_ignored_attributes

    assert_equal(expected, actual)
  end