old_contents: 'use strict';
  
  var mongoose = require('mongoose'),
      sinon = require('sinon');
  
  var modelStub;
  
  module.exports = {
      getControllerPath: function(controller) {
          return '../../../../server/controllers/' + controller;
      },
      restoreModel: function() {
          modelStub.restore();
      },
      setModuleLocalVariable: function(moduleObject, variableName, variableValue) {
          moduleObject.__set__(variableName, variableValue);
      },
      stubModel: function() {
          modelStub = sinon.stub(mongoose, 'model', function() {});
      }
  };
  
new_contents: 'use strict';
  
  var mongoose = require('mongoose'),
      sinon = require('sinon');
  
  var modelStub,
      getUnitPath = function(unitType, unitName) {
          return '../../../../server/' + unitType + '/' + unitName;
      };
  
  module.exports = {
      getControllerPath: function(controller) {
          return getUnitPath('controllers', controller);
      },
      getModelPath: function(model) {
          return getUnitPath('models', model);
      },
      restoreModel: function() {
          modelStub.restore();
      },
      setModuleLocalVariable: function(moduleObject, variableName, variableValue) {
          moduleObject.__set__(variableName, variableValue);
      },
      stubModel: function() {
          modelStub = sinon.stub(mongoose, 'model', function() {});
      }
  };
  
subject: extend the testing environment to test models