title: how to use rest-assured for integration tests on my WS without modyfing database state?
body: <p>I'm currently developping a REST Web service with Spring MVC.</p>
  
  <p>And I am struggling to find the best way to do integration tests on my WS.</p>
  
  <p>First solution : using rest-assured</p>
  
  <ul>
  <li>Advantage : fluent api, really easy to use with its cool DSL</li>
  <li>Drawback : when i perform POST or PUT requests on my WS, the state of my database is modified, and next tests are corrupted.</li>
  </ul>
  
  <p>Second solution : unit test the controllers and perform integration tests at the service level separately</p>
  
  <ul>
  <li>Advantage : i can control the state of my database, using Spring Test Framework and perform rollback after each test</li>
  <li>Disadvantage : i do not perform end-to-end integration tests anymore.</li>
  </ul>
  
  <p>Question : how can i use rest-assured to do integration tests without modifying the state of my database ?</p>
  
  <p>Thanks a lot.</p>