### Question:
ResourceDocumenter { protected String createLink(String key, String value) { String link = ""; link = LINK_HTML.replace("$LINK", baseUrl + value); link = link.replace("$TYPE", key); return link; }  void addResourceMerge(File generatedHtml); static void main(String[] args);  }### Answer:
@Test public void testCreateLink() { testResource.readPropertiesFile(); final String expectedLink = "<a href=\"" + testResource.getBaseUrl() + "endpoint#anchor\">test</a>"; String key = "test"; String value = "endpoint#anchor"; String out = testResource.createLink(key, value); assertEquals("output should match", out, expectedLink); }