@Test
public void testLink() {

    assertThat(Functions.link(null), is(""));
    assertThat(Functions.link(""), is(""));
    assertThat(Functions.link("go to http://www.google.com"), is(
            "go to <a href=\"http://www.google.com\">http://www.google.com</a>"));
    assertThat(Functions.link("go to https://www.google.com"), is(
            "go to <a href=\"https://www.google.com\">https://www.google.com</a>"));
}