@Test
public void testCanonicalUriWithPath() {

  URI uri;
  uri = NetUtils.getCanonicalUri(URI.create("path"), 2);
  assertEquals("path", uri.toString());
  uri = NetUtils.getCanonicalUri(URI.create("/path"), 2);
  assertEquals("/path", uri.toString());
}