  @Test
  public void test() throws Exception {

  	trash(OUTPUT);

  	File iFile = new File(INPUT);
  	Charset utf8 = Charset.forName("UTF-8");
  	
  	String inputStr = "A-This is\nB-the file\nC-content\n";
  	
		Files.write(inputStr, iFile, utf8);
		
		ToolRunner.run(new SortJob(), new String[]{INPUT, OUTPUT});

		String outputStr = Files.toString(new File(OUTPUT, "part-r-00000"), utf8);
		
		assertEquals(inputStr, outputStr);		
		
  	trash(INPUT, OUTPUT);
  }