### Question:
PermalinkControllerImpl implements PermalinkController { @Override public String getPermalinkUrl(String host) { return myUrlProvider.getPermalinkUrl(host); } PermalinkControllerImpl(ServerListManager serverListManager, ServerSourceControllerManager controllerManager); @Override InputStream downloadFile(String fileUrl, HttpServer server); @Override String getPermalinkUrl(String host); @Override String uploadFile(FilePayload payload, HttpServer server);  }### Answer:
@Test public void testGetPermalinkUrl() { EasyMockSupport support = new EasyMockSupport(); ServerListManager serverListManager = createServerManager(support); ServerSourceControllerManager controllerManager = createManager(support); support.replayAll(); PermalinkControllerImpl permalinker = new PermalinkControllerImpl(serverListManager, controllerManager); String permaLink = permalinker.getPermalinkUrl(ourHost); assertEquals(ourPermalink, permaLink); support.verifyAll(); }