@Test public void testTitleForInternalLink() {

    WikiSite wiki = WikiSite.forLanguageCode("en");
    assertThat(new PageTitle("wiki", wiki), is(wiki.titleForInternalLink("wiki")));
    assertThat(new PageTitle("wiki", wiki), is(wiki.titleForInternalLink("/wiki/wiki")));
    assertThat(new PageTitle("wiki/wiki", wiki), is(wiki.titleForInternalLink("/wiki/wiki/wiki")));
}