title: Hibernate executed queries and testing
body: <p>Is there a way to find out what queries are executed with hibernate? </p>
  
  <p>I would like to write a performance test to ensure only a specific query and amount are run.</p>
  
  <p><strong>Update:</strong> Just a clarification, i would like to programatically find out how many queries are run, not just via visual-manual inspection, so it would easily testable.</p>