BambooUrlBuilder { String getResultUrl(String planKey, int buildNumber) { return build("/result/" + planKey + "-" + buildNumber + "?expand=changes,metadata,stages,labels,jiraIssues,comments"); } BambooUrlBuilder(String bambooUrl);   }
@Test public void should_build_build_url() { String expectedUrl = "http: assertEquals(expectedUrl, builder.getResultUrl("STRUTS-STRUTS", 3)); }