title: Testing a JAX-RS Web Service?
body: <p>I'm currently looking for ways to create automated tests for a <a href="https://jsr311.dev.java.net/" rel="noreferrer">JAX-RS</a> (Java API for RESTful Web Services) based web service. </p>
  
  <p>I basically need a way to send it certain inputs and verify that I get the expected responses. I'd prefer to do this via JUnit, but I'm not sure how that can be achieved.</p>
  
  <p>What approach do you use to test your web-services?</p>
  
  <p><strong>Update:</strong> As entzik pointed out, decoupling the web service from the business logic allows me to unit test the business logic. However, I also want to test for the correct HTTP status codes etc.</p>