FileNameUtil { public static String fixPath(String filePath) { String path = FileNameUtil.getWithoutWildcard(FileUtils.fixPath(filePath)); return path; }  static String createFileName(String baseName, String defaultExtension); static String createFileNameWitoutExtension(String fileNameCandidate); static String getWithoutWildcard(String path); static String fixPath(String filePath); static String getCanonicalPath(File zipRelPath); static String makePathRelative(String relativeToPath, File srcFile);  }
@Test public void fixPath() { Assert.assertEquals("/path/to/dir/", FileNameUtil.fixPath(" }