title: Unit testing a REST client
body: <p>I'm fairly new to unit testing but I'm trying to incorporate it into my development process for any new code I write (including bug fixes). </p>
  
  <p>I'm working a REST client to communicate with Highrise (37Signals). How can I unit test this without relying on the external dependency? (The REST service). </p>
  
  <p>For instance I'll have a method called <code>GetPeople()</code></p>
  
  <p>Things I'll want to unit test...</p>
  
  <ol>
  <li>The method returns the correct number of people in the account.</li>
  <li>The method returns null if there are no people in the account</li>
  <li>The method throws an exception if it can't connect to the service. </li>
  </ol>
  
  <p>What do I do to test that the service still functions the same. I.E person still has a First Name? Can I unit test this or is this more of an integration test? </p>