@Test
void parseURLWithTrailingSlash() {

    Path path = Path.parse("/path1/path2/");
    assertEquals("/", path.value);
    assertEquals("path1", path.next.value);
    assertEquals("path2", path.next.next.value);
    assertEquals("/", path.next.next.next.value);
    assertNull(path.next.next.next.next);
}