UnitTest DB, check if proper index applied - http://myronmars.to/n/dev-blog/2012/09/test-driving-database-indexes http://www.codeaffine.com/2015/09/28/clean-integration-testing-with-junit-rules/ http://googletesting.blogspot.ch/2015/04/just-say-no-to-more-end-to-end-tests.html