# File test/test_SetupAlias.rb, line 10
    def setup
      # for WPM::Page class
      @driver_call = 0

      @page = Forwarder.new(self)
      class << @page
        def_delegator :__getobj__, :driver
      end

      # for WPM::Driver class
      @params_call = 0
      @query_params = { 'pos' => '2' }
      @redirect_call = 0
      @redirect_page_name = nil

      @driver = Forwarder.new(self)
      class << @driver
        def_delegator :__getobj__, :params
        def_delegator :__getobj__, :redirect
      end

      # for Rucy::Control class
      @aliases_call = 0
      @set_aliases_call = 0
      @set_aliases_alias_list = nil

      @control = Forwarder.new(self)
      class << @control
        def_delegator :__getobj__, :aliases
        def_delegator :__getobj__, :set_aliases
      end

      # for Rucy::AliasList class
      @modified_count_call = 0
      @set_modified_count_call = 0
      @set_modified_count_value = nil
      @at_call = 0
      @at_pos = nil
      @length_call = 0
      @add_entry_call = 0

      @alias_list = Forwarder.new(self)
      class << @alias_list
        def_delegator :__getobj__, :modified_count
        def_delegator :__getobj__, :modified_count=
        def_delegator :__getobj__, :at, :[]
        def_delegator :__getobj__, :length
        def_delegator :__getobj__, :add_entry
      end

      # for Rucy::AliasParams class
      @alias_path = nil
      @alias_path_call = 0
      @set_alias_path_call = 0
      @orig_path = nil
      @orig_path_call = 0
      @set_orig_path_call = 0
      @virtual_host = nil
      @virtual_host_call = 0
      @set_virtual_host_call = 0

      @alias_params = Forwarder.new(self)
      class << @alias_params
        def_delegator :__getobj__, :alias_path
        def_delegator :__getobj__, :alias_path=
        def_delegator :__getobj__, :orig_path
        def_delegator :__getobj__, :orig_path=
        def_delegator :__getobj__, :virtual_host
        def_delegator :__getobj__, :virtual_host=
      end

      # setup WPM::PageContext class
      loader = WPM::Loader.new('../control/SetupAlias/SetupAlias.rb')
      option = { :control => @control }
      @SetupAlias = loader.const_get('SetupAlias').new(@page, option)
      assert((@SetupAlias.is_a? WPM::PageContext))
    end