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: amount_test.rb
    path of file: ./repos/workarea/core/test/models/workarea/bulk_action/product_edit/price_change
    
    the code of the file until where you have to start completion: require 'test_helper'

module Workarea
  class BulkAction
    class ProductEdit < BulkAction
      class PriceChange
        class AmountTest < TestCase
          setup
    
          def test_set_to_percentage_of_current
            amount = Amount.new(
              @current,
              action: 'set',
              type: 'percentage',
              amount: '10'
            )

            assert_equal(1.to_m, amount.to_m)
            assert(amount.apply?)
          end