   @mock: (args...) ->
     mock = new MockFunction()
     mock.load_args(args)
-    mock.setup()
+    mock.setup_environment()
     try
       mock.run_test_function()
       mock.verify_expectations()
     finally
-      mock.cleanup()
+      mock.cleanup_environment()
 
   constructor: ->
     @_test_function = undefined

    @parse_args(args)
    @check_expects_method_name()

  setup: (args) ->
    @create_mock_objects()
    @create_empty_mock_methods_list()
    @install_expects_method()

    errors = @_mock_methods.find_errors()
    fail( errors.join("\n") + "\n" ) if errors.length > 0

  cleanup_environment: ->
    @_mock_methods.restore_original_methods()
    @uninstall_expects_method()

