@Test
public void testTokenMatchMode() throws Exception {

	hadoopCommand = "-i %s -o %s -m %s -j %s -r %s";
	String command = String.format(hadoopCommand,
			stemmedTweets.getAbsolutePath(),
			outputLocation.getAbsolutePath(), "MATCH_TERM", "text", ":[)]");
	String[] args = command.split(" ");
	args = (String[]) ArrayUtils.addAll(args, new String[] { "-pp",
			"-m PORTER_STEM" });
	HadoopTwitterTokenTool.main(args);
	String[] tweets = HadoopToolsUtil.readlines(outputLocation
			.getAbsolutePath() + "/" + TokenRegexStage.OUT_NAME);
	assertTrue(tweets.length == 6);
	// HashMap<String,IndependentPair<Long,Long>> wordLineCounts =
	// WordIndex.readWordCountLines(resultsOutputLocation.getAbsolutePath());
	// assertTrue(wordLineCounts.get(".").firstObject() == 12);
}