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: test_refinement.rb
    path of file: ./repos/jruby/test/mri/ruby
    
    the code of the file until where you have to start completion: # frozen_string_literal: false
require 'test/unit'

class TestRefinement < Test:
    
  def test_adding_private_method
    bug9452 = '[ruby-core:60111] [Bug #9452]'

    assert_in_out_err([], <<-INPUT, ["Success!", "NoMethodError"], [], bug9452)
      module R
        refine Object do
          def m
            puts "Success!"
          end

          private(:m)
        end
      end