### Question:
UrlStrategy implements OutputStrategy { @Override public void build(String url, OutputStream os) throws IOException { String lastChar = url.substring(url.length() - 1); if (isPunctuation(lastChar)) { url = url.substring(0, url.length() - 1); } else { lastChar = null; } String anchorTag = makeAnchor(url, lastChar); os.write(anchorTag.getBytes()); }  @Override void build(String url, OutputStream os);  }### Answer:
@Test public void testUrlStrategy() throws IOException { instance.build("www.google.co.uk", out); String result = out.toString(); assertEquals("<a href=\"http: }