title: Testing REST service in java
body: <p>So, here's the thing.<br>
  There's a REST service I'm using that is supposed to be tested and I can't access the code.  </p>
  
  <p>I've made some kind of library in java so I can interact with that service, but I need to unit test my library (actually it's still not implemented, I'm using TDD) so I can know for sure it works.</p>
  
  <p>How can I do it so I don't mess up with the service (I don't want to create nor delete anything)?
  Should I use some kind of mock or stub? If so, how can it be done?</p>
  
  <p>Thx!</p>