just like in my other post in your other topic... look at the unittests etc... lots of examples there View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058193#4058193 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058193