### Question:
URLValidator { public static boolean isValid (@Nullable final String sURL) { if (StringHelper.hasNoText (sURL)) return false; final String sUnifiedURL = getUnifiedURL (sURL); return PATTERN.matcher (sUnifiedURL).matches (); } private  URLValidator(); @Nullable static String getUnifiedURL(@Nullable final String sURL); static boolean isValid(@Nullable final String sURL);  }### Answer:
@Test public void testValid () { for (final String sValid : VALID1) assertTrue ("Expected '" + sValid + "' to be valid", URLValidator.isValid (sValid)); for (final String sValid : VALID2) assertTrue ("Expected '" + sValid + "' to be valid", URLValidator.isValid (sValid)); for (final String sInvalid : INVALID) assertFalse ("Expected '" + sInvalid + "' to be invalid", URLValidator.isValid (sInvalid)); }