### Question:
FileUtils { public static String getFileSeparatorAsRegex() { final String fileSeparator = File.separator; if (fileSeparator.contains(BACKSLASH)) { return fileSeparator.replace(BACKSLASH, ESCAPED_BACKSLASH); } return fileSeparator; } private  FileUtils(); static String backOneDirectory(String fileIdentifier); static boolean copyRecursively(final File source, final File destination,
      final boolean deleteDestinationOnExit); static String ensureTrailingSeparator(final String path); static String getCanonicalPath(final File file); static String getFileSeparatorAsRegex(); static String getFirstDirectory(String fileIdentifier); static InputStream getInputStream(final Class<?> loadingClass, final String filename); static String getPath(final Class<?> loadingClass, final String relativeFilename); static String getSystemDependentPath(final Collection<String> pathElements); static String getSystemDependentPath(final String... pathElements); static boolean matchesAntPath(final String antPattern, final String canonicalPath); static final String CURRENT_DIRECTORY; }### Answer:
@Test public void testGetFileSeparatorAsRegex() throws Exception { final String regex = FileUtils.getFileSeparatorAsRegex(); final String currentDirectory = new File(FileUtils.CURRENT_DIRECTORY).getCanonicalPath(); final String[] pathElements = currentDirectory.split(regex); assertTrue(pathElements.length > 0); }