### Question:
UrlUtilities { public static URL toURLNew(String urlOrPathString) { URL url = null; if (StringUtils.isNotEmpty(urlOrPathString)) { String urlString = hasValidProtocol(urlOrPathString) ? fixFileProtocol(urlOrPathString) : addFileProtocol(urlOrPathString); url = toURL(urlString); } return url; } private  UrlUtilities(); static String getBaseURL(URL u); static String getBaseURL(String u); static ThreeTuple<String, String, Integer> getProtocolHostPort(String url, int defaultPort); static boolean isFragmentPresent(URL url); static String getFragment(URL url); static boolean isFile(URL url); static URL toURL(String urlString); static URL toURLNew(String urlOrPathString); static String concatUrlFragments(String... fragments);  }### Answer:
@SuppressFBWarnings("DMI_HARDCODED_ABSOLUTE_FILENAME") @Test public void testToURLNew() throws MalformedURLException { assertEquals(null, UrlUtilities.toURLNew(null)); assertEquals(null, UrlUtilities.toURLNew("")); assertEquals(new URL("http: assertEquals(new URL("file: assertEquals(new URL("file: assertEquals(new URL("file: assertEquals(new URL("file: assertEquals(new URL("file: assertEquals(new URL("file: }