@Test
  public void testCreatePathWithSeparator() {
    assertThat(IOUtils.createPath(new String[0], "-")).isEqualTo("");
    assertThat(IOUtils.createPath(new String[] {"path", "to", "file.ext"}, "-"))
        .isEqualTo("-path-to-file.ext".replace("/", File.separator));
    assertThat(IOUtils.createPath(new String[] {"path", "to", "a", "directory"}, "-"))
        .isEqualTo("-path-to-a-directory");
  }
Gets a fully-qualified path anchored at root.
<p>

@param pathElements a String array containing the elements of the path.
@return a fully-qualified pathname as a String value.
geode-core/src/test/java/org/apache/geode/internal/util/IOUtilsJUnitTest.java