URLUtil { public static boolean isURL(String message) { return message.startsWith(URLUtil.URL_START) && message.endsWith(URLUtil.URL_END); }  static byte[] getData(String url, String encoding); static String getDataEncoding(String url); static boolean isURL(String message); static String getURL(String message); static final String URL_START; static final String URL_END; }
@Test public void testIsURL() throws Exception { assertFalse(URLUtil.isURL("some message")); assertTrue(URLUtil.isURL("url(http: assertFalse(URLUtil.isURL("url(http: assertFalse(URLUtil.isURL("(http: }