There has been some discussion on the old sf forums. The main thing is that since there is no standard for testing bpm engines, use a process model that comes as close as possible to your real life ones.
One major thing from the discussion I remember, is not to create a new JBPMSessionFactory each time, but reuse it. And don't use the web interface for testing, but the api