HudsonUrlBuilder { public String getUserUrl(String userName) { return hudsonUrl + USER_URI + "/" + encode(userName) + API_XML; } HudsonUrlBuilder(String hudsonUrl); String getTestResultUrl(String jobName, int buildNumber); String getPomUrl(String jobName); String getAllProjectsUrl(); String getJobUrl(String jobName); String getBuildUrl(String jobName, int buildNumber); String getUserUrl(String userName); String getViewUrl(String viewName);  }
@Test public void should_create_user_url() { String userUrl = hudsonUrlBuilder.getUserUrl("Julien Smadja"); assertEquals("http: }