### Question:
Comparator { public boolean isOutputTheSame(String standardOutputFilePath, String outputFilePath) throws IOException { File stdFile = new File(standardOutputFilePath); File file = new File(outputFilePath); LineIterator stdFileItr = FileUtils.lineIterator(stdFile, "UTF-8"); LineIterator fileItr = FileUtils.lineIterator(file, "UTF-8"); boolean isFileOutputTheSame = isFileOutputTheSame(stdFileItr, fileItr); LineIterator.closeQuietly(stdFileItr); LineIterator.closeQuietly(fileItr); return isFileOutputTheSame; }  boolean isOutputTheSame(String standardOutputFilePath,
			String outputFilePath);  }### Answer:
@Test public void testMatchExactly() throws IOException { String standardOutputFilePath = "/tmp/voj-matcher-tests/match-exactly-std.txt"; String outputFilePath = "/tmp/voj-matcher-tests/match-exactly.txt"; Assertions.assertTrue(comparator.isOutputTheSame(standardOutputFilePath, outputFilePath)); }
@Test public void testMatchWithSpaces() throws IOException { String standardOutputFilePath = "/tmp/voj-matcher-tests/match-with-spaces-std.txt"; String outputFilePath = "/tmp/voj-matcher-tests/match-with-spaces.txt"; Assertions.assertTrue(comparator.isOutputTheSame(standardOutputFilePath, outputFilePath)); Assertions.assertTrue(comparator.isOutputTheSame(outputFilePath, standardOutputFilePath)); }
@Test public void testMismatch() throws IOException { String standardOutputFilePath = "/tmp/voj-matcher-tests/mismatch-std.txt"; String outputFilePath = "/tmp/voj-matcher-tests/mismatch.txt"; Assertions.assertFalse(comparator.isOutputTheSame(standardOutputFilePath, outputFilePath)); }
@Test public void testMismatchEmptyString() throws IOException { String standardOutputFilePath = "/tmp/voj-matcher-tests/mismatch-std.txt"; String outputFilePath = "/tmp/voj-matcher-tests/mismatch-empty.txt"; Assertions.assertFalse(comparator.isOutputTheSame(standardOutputFilePath, outputFilePath)); }