public void testToString() {
ParseResult path = type.parsePath("foo/bar\\baz");
assertThat(type.toString(path.root(), path.names())).isEqualTo("foo/bar/baz");
ParseResult path2 = type.parsePath("$/foo/bar");
assertThat(type.toString(path2.root(), path2.names())).isEqualTo("$foo/bar");
}
@Test
public void testToUri() {
URI fileUri = type.toUri(fileSystemUri, "$", ImmutableList.of("foo", "bar"));