.appendQueryParamsToPath(uri, null, true));
}
public void testParsePath() {
LinkedList<PathSegment> segments = new LinkedList<PathSegment>();
segments.add(new PathSegmentImpl(""));
assertEquals(segments, UriHelper.parsePath(""));
segments.clear();
segments.add(new PathSegmentImpl("a"));
segments.add(new PathSegmentImpl("b;m=1"));
segments.add(new PathSegmentImpl("c"));
assertEquals(segments, UriHelper.parsePath("a/b;m=1/c"));
segments.add(new PathSegmentImpl(""));
assertEquals(segments, UriHelper.parsePath("a/b;m=1/c/"));
segments.addFirst(new PathSegmentImpl(""));
assertEquals(segments, UriHelper.parsePath("/a/b;m=1/c/"));
}