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

require "test_helper"

module RubyLsp
  class AddonTest < Minitest::Test
    def setup
      @addon = Class.new(Addon) do
        attr_reader :activated, :field

        def initialize
          @field = 123
          super
        end

        def activate(message_queue)
          @activated = true
        end

        def name
          "My Addon"
        end
  
    
    def test_load_addons_returns_errors
      Class.new(Addon) do
        def activate(message_queue)
          raise StandardError, "Failed to activate"
        end

        def name
          "My addon"
        end
      end

      queue = Thread::Queue.new
      Addon.load_addons(queue)
      error_addon = T.must(Addon.addons.find(&:error?))
      queue.close

      assert_predicate(error_addon, :error?)
      assert_equal(<<~MESSAGE, error_addon.formatted_errors)
        My addon:
          Failed to activate
      MESSAGE
    end