title: Difference between shims and stubs
body: <p>Can anyone tell me very clearly what's the main difference between a <code>shim</code> and a <code>stub</code> during unit testing? </p>
  
  <p>I know about mock objects and I read about shims and stubs but it's still not clear in which context I should use a shim or a stub.</p>