### Question:
UrlUtils { public static boolean isPermittedResourceProtocol(@Nullable final String scheme) { return scheme != null && ( scheme.startsWith("http") || scheme.startsWith("https") || scheme.startsWith("file") || scheme.startsWith("data")); }  static String normalize(@NonNull String input); static boolean isUrl(String url); static boolean isValidSearchQueryUrl(String url); static boolean isHttpOrHttps(String url); static boolean isSearchQuery(String text); static String createSearchUrl(Context context, String searchTerm); static String stripUserInfo(@Nullable String url); static boolean isPermittedResourceProtocol(@Nullable final String scheme); static boolean isSupportedProtocol(@Nullable final String scheme); static boolean isInternalErrorURL(final String url); static boolean urlsMatchExceptForTrailingSlash(final @NonNull String url1, final @NonNull String url2); static String stripCommonSubdomains(@Nullable String host); static boolean isLocalizedContent(@Nullable String url);  }### Answer:
@Test public void isPermittedResourceProtocol() { assertFalse(UrlUtils.isPermittedResourceProtocol("")); assertFalse(UrlUtils.isPermittedResourceProtocol(null)); assertTrue(UrlUtils.isPermittedResourceProtocol("http")); assertTrue(UrlUtils.isPermittedResourceProtocol("https")); assertTrue(UrlUtils.isPermittedResourceProtocol("data")); assertTrue(UrlUtils.isPermittedResourceProtocol("file")); assertFalse(UrlUtils.isPermittedResourceProtocol("nielsenwebid")); }