### Question:
LinksBuilder { public Link linkToCommonCourt(long courtId){ return linkFor(CommonCourtController.class, courtId); }  String urlToJudgment(long judgmentId); Link linkToJudgment(long judgmentId); String urlToCcDivision(long divisionId); Link linkToCcDivision(long divisionId); String urlToScDivision(long divisionId); Link linkToScDivision(long divisionId); Link linkToScDivision(long divisionId, String relName); String urlToScChamber(long chamberId); Link linkToScChamber(long chamberId); Link linkToScChamber(long chamberId, String relName); String urlToCommonCourt(long courtId); Link linkToCommonCourt(long courtId); Link linkToCommonCourt(long courtId, String relName);  }### Answer:
@Test public void itShouldReturnLinkToGivenCourt(){ int someCourtId = 909; Link link = linksBuilder.linkToCommonCourt(someCourtId); assertThat(link.getHref(), endsWith("/api/commonCourts/"+someCourtId)); assertThat(link.getRel(), is(SELF)); }
@Test public void itShouldReturnLinkToGivenCourtWithGivenRel(){ int someCourtId = 234; String someRelName = "someCourtRelName"; Link link = linksBuilder.linkToCommonCourt(someCourtId, someRelName); assertThat(link.getHref(), endsWith("/api/commonCourts/"+someCourtId)); assertThat(link.getRel(), is(someRelName)); }