title: Integration Test of REST APIs with Code Coverage
body: <p>We have built a REST API that exposes bunch of business services - a business service may invoke other platform/utility services to perform database read and writes, to perform service authorization etc.</p>
  
  <p>We have deployed these services as WAR files in Tomcat.</p>
  
  <p>We want to test this whole setup using a integration test suite which we would like to also treat as regression test suite.</p>
  
  <p>What would be a good approach to perform integration testing on this and any tools that can speed up the development of suite?  Here are few requirements we think we need to address:</p>
  
  <ol>
  <li>Ability to define integration test cases which exercise business scenarios.</li>
  <li>Set up the DB with test data before suite is run.</li>
  <li>Invoke the REST API that is running on a remote server (Tomcat)</li>
  <li>Validate the DB post test execution for verifying expected output</li>
  <li>Have code coverage report of REST API so that we know how confident we should be in the scenarios covered by the suite. </li>
  </ol>