arun-gupta/javaee7-samples — pull request #131 by radcortez (2013-11-24 19:59:58+00:00)
Title: Added tests to batch-listeners project

The best way I could think to make sure the listeners were actually executing was to add an interceptor to the listeners methods themselves and record the execution. Then on the test I check if the listener method was actually executed using the data recorded.

Please let me know if this is ok or if you have a better idea :)