String generatedContent = TestUtil.readFile(generatedFile);
String generatedContent = TestUtil.readFile(generatedFile, true);
  private void assertGeneratedFile(File dir, File expectedDir, String file, String[] testTokenReplacements)  {    File expectedFile = new File(expectedDir, file);    File generatedFile = new File(dir, file);        assertTrue("File: " + expectedFile, expectedFile.isFile());    assertTrue("File: " + generatedFile, generatedFile.isFile());        String expectedContent = TestUtil.readFile(expectedFile);    if (testTokenReplacements != null)    {      for (int i=testTokenReplacements.length-1; i >= 0; i--)      {        String replacement = testTokenReplacements[i];        expectedContent = expectedContent.replaceAll(TEST_TOKEN+i, replacement.replaceAll("\\\\", "\\\\\\\\"));      }    }    String generatedContent = TestUtil.readFile(generatedFile);        //Remove CVS tags    expectedContent = expectedContent.replaceAll("\\$Id.*\\$", "");    generatedContent = generatedContent.replaceAll("\\$Id.*\\$", "");        assertEquals("File: " + file, expectedContent, generatedContent);  }  