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: transition_collection_with_action_error_test.rb
    path of file: ./repos/state_machines/test/unit/transition_collection
    
    the code of the file until where you have to start completion: require 'test_helper'

class TransitionCollectionWithActionErrorTest < StateMach
    
  def setup
    @klass = Class.new do
      def save
        fail ArgumentError
      end
    end
    @before_count = 0
    @around_before_count = 0
    @after_count = 0
    @around_after_count = 0
    @failure_count = 0

    @machine = StateMachines::Machine.new(@klass, initial: :parked, action: :save)
    @machine.state :idling
    @machine.event :ignite

    @machine.before_transition { @before_count += 1 }
    @machine.after_transition { @after_count += 1 }
    @machine.around_transition { |block| @around_before_count += 1; block.call; @around_after_count += 1 }
    @machine.after_failure { @failure_count += 1 }

    @object = @klass.new

    @transitions = StateMachines::TransitionCollection.new([
      StateMachines::Transition.new(@object, @machine, :ignite, :parked, :idling)
    ])

    @raised = true
    begin
      @transitions.perform
      @raised = false
    rescue ArgumentError
    end