@Test
  public void testPaths_toRealPath() throws IOException {
    Files.createDirectories(path("C:\\foo\\bar"));
    Files.createSymbolicLink(path("C:\\link"), path("C:\\"));

    assertThatPath(path("C:\\link\\foo\\bar").toRealPath()).isEqualTo(path("C:\\foo\\bar"));

    assertThatPath(path("").toRealPath()).isEqualTo(path("C:\\work"));
    assertThatPath(path(".").toRealPath()).isEqualTo(path("C:\\work"));
    assertThatPath(path("..").toRealPath()).isEqualTo(path("C:\\"));
    assertThatPath(path("..\\..").toRealPath()).isEqualTo(path("C:\\"));
    assertThatPath(path(".\\..\\.\\..").toRealPath()).isEqualTo(path("C:\\"));
    assertThatPath(path(".\\..\\.\\..\\.").toRealPath()).isEqualTo(path("C:\\"));
  }
Tests a Windows-like file system through the public methods in {@link Files}.

@author Colin Decker
jimfs/src/test/java/com/google/common/jimfs/JimfsWindowsLikeFileSystemTest.java