title: How to check in Play Framework if a unit test performed a database insert/update/delete
body: <p>I've got a base class that all my controller tests extend. This is set up so each unit test can have its own Fixture to load from.</p>
  
  <p>So the @Before override will check what the required fixture for the test is, load it and then start the test.</p>
  
  <p>The problem here is that this reloads the fixture every single time. Even if the method only did a select on the database, altering nothing.</p>
  
  <p>The internal memory database the Play Framework uses is the H2 database. I wonder if there is a way to check after a unit test is done, if there has been a change to the database and if not, skip the reloading of the exact same data.</p>
  
  <p>I tried identity_scope, it returns null no matter what.</p>