### Question:
CommonUtil { public static boolean isFullUrl(String link) { if (link == null) { return false; } try { new URL(link); return true; } catch (MalformedURLException e) { return false; } }  static boolean isEmptyString(Object o); static String nvl(Object value, String defaultValue); static String adaptFilename(String filePath); static boolean isEmpty(String s); static boolean isValidXmlIdentifier(String name); static boolean isPathAbsolute(String path); static String getAbsoluteFilename(String workingPath, String filePath); static String getDirectoryFromPath(String path); static String getFileFromPath(String path); @Deprecated static String indent(int length); static String encodeUrl(String url, String charset); static boolean isBooleanTrue(String value); static Boolean getBooleanValue(String value, Boolean defaultValue); static int getIntValue(String value, int defaultValue); static double getDoubleValue(String value, double defaultValue); static String escapeXml(String s); static String serializeItem(Item item, Properties outputProperties); static String readStringFromFile(File file, String encoding); static void saveStringToFile(File file, String content, String charset); static byte[] readBytesFromFile(File file); static boolean isFullUrl(String link); static String fullUrl(String pageUrl, String link); static Variable createVariable(Object value); static String readStringFromUrl(URL url); static int countChars(String text, char ch, int from, int to); static boolean existsInStringArray(String[] array, String s, boolean caseSensitive); static String[] tokenize(String s, String delimiters); static String[] tokenize(String s, String delimiters, boolean trimTokens, boolean allowEmptyTokens); static String getValidIdentifier(String value); static int findValueInCollection(Collection c, Object value);  }### Answer:
@Test public void testIsFullUrl() throws Exception { Assert.assertTrue(CommonUtil.isFullUrl("http: Assert.assertTrue(CommonUtil.isFullUrl("https: Assert.assertTrue(CommonUtil.isFullUrl("file: Assert.assertTrue(CommonUtil.isFullUrl("file:/C:/Documents and Settings")); Assert.assertTrue(CommonUtil.isFullUrl("file: Assert.assertTrue(CommonUtil.isFullUrl("ftp: Assert.assertTrue(CommonUtil.isFullUrl("jar:file: }