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: belongs_to_test.rb
    path of file: ./repos/occams-record/test/eager_loading
    
    the code of the file until where you have to start completion: require 'test_helper'

class EagerLoadingBelongsToTest < Minitest::Test
  include TestHelpers

  def setup
    DatabaseCleaner.start
  end

  def teardown
    Databas
    
  def test_belongs_to_query
    ref = Widget.reflections.fetch 'category'
    loader = OccamsRecord::EagerLoaders::BelongsTo.new(ref, ->(q) { q.where(name: 'Foo') })
    widgets = [
      OpenStruct.new(category_id: 5),
      OpenStruct.new(category_id: 10),
    ]
    loader.send(:query, widgets) { |scope|
      assert_equal %q(SELECT categories.* FROM categories WHERE categories.name = 'Foo' AND categories.id IN (5, 10)), normalize_sql(scope.to_sql)
    }
  end