…but most especially these within an Enterprise Java environment. Everyone & his dog has written a book or two that cover the Noddy, non real world examples. I want to see the sort of examples that show testing EJBs, servlets, JSPs, involved & complex fixtures with extensive use of mock objects.
In particular I’d like to see the use of these as tools for support programming, e.g. where you have a bug identified, and you set up a test that is designed to fail because of the buggy behaviour & then code to make that test pass. Give us the really gnarly, rage-inducing cases & show us the gotchas & anti-patterns we should avoid at all costs.