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: aws_test.rb
    path of file: ./repos/newrelic-ruby-agent/test/new_relic/agent/utilization
    
    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: 
    
        def test_fails_based_on_response_code
          fixture = File.read(File.join(aws_fixture_path, 'valid.json'))

          mock_response = stub(code: '404', body: fixture)
          @vendor.stubs(:request_metadata).returns(mock_response)

          refute @vendor.detect
          refute_metrics_recorded 'Supportability/utilization/aws/error'
        end