Loosely-Coupled

  1. Anything that calls an external dependency, put into another class
  1. Extract an interface from that class
  1. Make it so that the class undertest now calls the interface

This will allow you to mock the interface