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: finder_methods_test.rb
    path of file: ./repos/second_level_cache/test
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require "test_helper"

class FinderMethodsTest < ActiveSupport::TestCase
  def setup
    @user = User.create name: "csdn", email: "test@csdn.com"
    @book = @user.books.create
  end

  def test_should_find_
    
  def test_should_fetch_from_db_if_where_use_string
    @user.write_second_level_cache
    assert_queries(:any) do
      assert_nil User.unscoped.where(id: @user.id).where("name = 'nonexistent'").first
    end
    assert_queries(:any) do
      assert_raises ActiveRecord::RecordNotFound do
        User.where("name = 'nonexistent'").find(@user.id)
      end
    end
  end