@Test
public void testCanonicalUriWithDefaultPort() {

  URI uri;
  
  uri = NetUtils.getCanonicalUri(URI.create("scheme://host"), 123);
  assertEquals("scheme://host.a.b:123", uri.toString());
  uri = NetUtils.getCanonicalUri(URI.create("scheme://host/"), 123);
  assertEquals("scheme://host.a.b:123/", uri.toString());
  uri = NetUtils.getCanonicalUri(URI.create("scheme://host/path"), 123);
  assertEquals("scheme://host.a.b:123/path", uri.toString());
  uri = NetUtils.getCanonicalUri(URI.create("scheme://host/path?q#frag"), 123);
  assertEquals("scheme://host.a.b:123/path?q#frag", uri.toString());
}