Try using an integration test. This use of the Java SE in a unit test is one I don't like. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122728#4122728 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122728