FileWriter fw = new FileWriter(inFile);
fw.write(WordCountData.TEXT);
fw.close();
// run WordCount
WordCount wc = new WordCount();
LocalExecutor executor = new LocalExecutor();
executor.setDefaultOverwriteFiles(true);
executor.setTaskManagerNumSlots(DOP);
executor.start();
executor.executePlan(wc.getPlan(new Integer(DOP).toString(), inFile.toURI().toString(),
outFile.toURI().toString()));
executor.stop();
} catch (Exception e) {
e.printStackTrace();
Assert.fail(e.getMessage());