FileNameUtils { public static String convertToValidPath(String path) { if(path == null) { return path; } if (path.endsWith("/")) { return path; } else { return path + "/"; } }  static String getFileExtension(String fileName); static boolean isTarGz(String componentExtension); static boolean isZip(String componentExtension); static boolean isUnsupported(String componentExtension); static String convertToValidPath(String path); static String getName(String filename); static int indexOfLastSeparator(String filename); static String getDependencyFileName(String osName,
			String componentName); static String getInstallerFilePath(String osName,
			String componentName); static String getSciprtPath(String technology, String fileName); static String getParentFolderName(String folderPath); static ONSFileType getFileType(String fileName); static String getPathFromArchive(String archiveFile,
			String charSequence); static String getExtractedDirectoryName(String archiveFile); static String getComponentEnvFilePath(String componentName);  }
@Test public void testConvertToValidPath_1() throws Exception { String path = "/"; String result = FileNameUtils.convertToValidPath(path); assertEquals("/", result); }