From the JBPM5 doewnload section you will find a file named jbpm-5.2.0 Final-examples.zip.
http://sourceforge.net/projects/jbpm/files/jBPM%205/jbpm-5.2.0.Final/jbpm-5.2.0.Final-examples.zip/download
This contains a bunch of business process examples - but more important;ly a suite a testcases that use a specialised JUnit runner to handle the establishment of the container to execute the process definitions. You can work though these examples to see how business processes can be tested inside a continuous integration environment, and how test metrics can be generated.
Cheers, Steve.