@Test
public void testIsFullUrl() throws Exception {

    // HTTP and HTTPS
    Assert.assertTrue(CommonUtil.isFullUrl("http://somehost:8080/downloads/somefile.jar"));
    Assert.assertTrue(CommonUtil.isFullUrl("https://myusername@somehost/index.html"));
    // File
    Assert.assertTrue(CommonUtil.isFullUrl("file:///somedir/some%25file.txt"));
    Assert.assertTrue(CommonUtil.isFullUrl("file:/C:/Documents and Settings"));
    Assert.assertTrue(CommonUtil.isFullUrl("file://///somehost/someshare/afile.txt"));
    // JAR
    Assert.assertTrue(CommonUtil.isFullUrl("ftp://myusername:mypassword@somehost/pub/downloads/somefile.tgz"));
    // FTP
    Assert.assertTrue(CommonUtil.isFullUrl("jar:file://my/path/to/images.jar!/path/in/classpath/image.png"));
}