FileSet fileSet = new FileSet();
fileSet.setProject(mxtest.getProject());
fileSet.setDir(mxtest.getClassesDir());
fileSet.createInclude().setName("**/*.class");
InstrumentTask task = new InstrumentTask();
task.setTaskName("instr");
task.setProject(mxtest.getProject());
task.init();
task.addFileset(fileSet);
task.setDataFile(mxtest.getCoberturaData().getAbsolutePath());
task.setToDir(mxtest.getInstrumentedBuild());
task.execute();
}