TeamCityUrlBuilder { String getUserByUsername(String username) { return build("/users/username:" + username); } TeamCityUrlBuilder(String teamCityUrl);   }
@Test public void should_create_valid_username_url() { String usernameUrl = builder.getUserByUsername("davcamer"); assertEquals(TEAM_CITY_URL + "/app/rest/users/username:davcamer", usernameUrl); }