void (String filePath) { File file = new File(FileUtil.toSystemDependentName(filePath)); assertTrue("File " + file.getAbsolutePath() + " doesn't exist", file.exists()); final boolean deleted = FileUtil.delete(file); assertTrue("Cannot delete file " + file.getAbsolutePath(), deleted); }