title: Why Create Mock Objects?
body: <p>During a recent interview I was asked why one would want to create mock objects. My answer went something like, "Take a database--if you're writing test code, you may not want that test hooked up live to the production database where actual operations will be performed." </p>
  
  <p>Judging by response, my answer clearly was not what the interviewer was looking for. What's a better answer?</p>