Recently I cam to see Hibernatemock api on link
http://code.google.com/p/hibernatemock/
I couldn’t get more documentation for it to understand if i can use it in my project or not.
Some of benefits it has is that i it mocks objects dependencies needed for testing DAO.
There’s an article with some code here. Use Google Translate if you don’t read Portuguese. For the code, you can space-separate the identifiers and pass that through Google Translate, e.g. listarPessoasQueAlugaramCarroNoPeriodo. There’s also some code on the project page.
You can also browse through the source code to discover the available functions.