@Test
public void buildUriFromString() throws Throwable {

    assertEquals(null, UriUtils.buildUri("http://finance.yahoo.com/q/h?s=^IXIC"));
    assertEquals(new URI(""), UriUtils.buildUri(""));
    assertEquals(new URI("http://example.com/example"),
            UriUtils.buildUri("http://example.com/example"));
    assertEquals(new URI("/one/two/three"), UriUtils.buildUri("/one/two/three"));
}