Project project = new Project();
ProcessTester server = new ProcessTester();
MockControl wdCtrl = MockClassControl.createControl(KillableExecuteWatchdog.class);
KillableExecuteWatchdog wd = (KillableExecuteWatchdog)wdCtrl.getMock();
wd.killProcess(true);
XhJavaBgTask task = new TestXhJavaBgTask(wd);
task.setProject(project);
task.setClassname(ProcessTester.class.getName());
task.setClasspath(new Path(project, getClassPath()));