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: query_cache_test.rb
    path of file: ./repos/workarea/core/test/lib/workarea/elasticsearch
    
    the code of the file until where you have to start completion: require 'test_helper'

module Workarea
  module Elasticsearch
    class QueryCacheTest < TestCase
      include SearchIndexing

      setup :enable_workers
      setup :category
      setup :pro
    
      def test_when_query_cache_is_enabled
        Workarea::Elasticsearch::QueryCache.enabled = true

        Search::Storefront::CategoryQuery.find_by_product(product)

        WebMock.reset!

        Search::Storefront::CategoryQuery.find_by_product(product)

        assert_not_requested :get, "#{Workarea::Search::Storefront.current_index.url}/_search"
      end