protected void setUp() throws Exception {
super.setUp();
System.setSecurityManager(null);
source = new CodeSource(new File("target").toURI().toURL(), (Certificate[])null);
sm = new DynamicSecurityManager();
Policy policy = Policy.getPolicy();
sm.setPermissions(source, policy.getPermissions(source));
sm.addPermission(source, new RuntimePermission("setSecurityManager"));
File mainClasses = new File(System.getProperty("user.dir"), "target/classes/-");