private static void assertFilePathPresent(File file, File rootFile, Set<String> filePaths) { String path = FileUtil.getRelativePath(rootFile, file); if (path != null) { String relativePath = FileUtil.nameToCompare(path); if (!filePaths.contains(relativePath)) { Assert.fail( "Test data file missing from the generated test class: " + file + "\n" + PLEASE_REGENERATE_TESTS); } } }