TextUtils { @NonNull public static String lintUrl(String url) { if (!url.endsWith("/")) { return String.format("%s/", url); } return url; }  static boolean isEmpty(String url); static String getLastSevenNumbers(String uniqueId); @NonNull static String lintUrl(String url); static String truncateByDoubleColons(String source, int level);  }
@Test public void should_return_expected_url_when_lint_url() throws Exception { String url = "http: assertThat("Should return expected url", TextUtils.lintUrl(url), is(expectedUrl)); }
@Test public void should_return_url_when_lint_url() throws Exception { String url = "http: assertThat("Should return url", TextUtils.lintUrl(url), is(url)); }