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