@Test
  public void testPaths_toAbsolutePath() {
    assertThatPath(path("C:\\foo\\bar").toAbsolutePath())
        .isAbsolute()
        .and()
        .hasRootComponent("C:\\")
        .and()
        .hasNameComponents("foo", "bar")
        .and()
        .isEqualTo(path("C:\\foo\\bar"));

    assertThatPath(path("foo\\bar").toAbsolutePath())
        .isAbsolute()
        .and()
        .hasRootComponent("C:\\")
        .and()
        .hasNameComponents("work", "foo", "bar")
        .and()
        .isEqualTo(path("C:\\work\\foo\\bar"));
  }
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