We\'re using hdsqldb in memory to run junit tests which operate against a database. The db is setup before running each test via a spring configuration. All works fine. Now
If you know the table you want to "inspect" at any point you can output its current values to the console.
https://stackoverflow.com/a/31887249/32453
You could even do this call in a debugger...