private void verifyLink(String scheme, String extension) {
String link = scheme + "://other.com/img." + extension;
assertThat(scheme + " and ." + extension + " is not renderable as link",
renderer.isRenderableAsLink(link), is(true));
LinkInfo linkInfo = renderer.renderLink(link);
assertThat(scheme + " and ." + extension + " failed", linkInfo, is(not((LinkInfo) null)));
assertThat(linkInfo.getLinkAddress(), is(equalTo(link)));
}