HudsonUrlBuilder { public String getViewUrl(String viewName) { return hudsonUrl + VIEW_URI + "/" + encode(viewName) + 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_view_url() { String viewUrl = hudsonUrlBuilder.getViewUrl("android"); assertEquals("http: }