### Question:
HtmlLabelUtil { public static boolean containsLabelForId(List<HtmlLabel> labels, String id) { for (HtmlLabel label : labels) { if (label.getForAttribute() != null && label.getForAttribute().equals(id)) { return true; } } return false; } private  HtmlLabelUtil(); static boolean containsLabelForId(List<HtmlLabel> labels, String id);  }### Answer:
@Test public void containsLabelForIdShouldReturnTrueIfLabelForThatIdExists() { assertThat(containsLabelForId(labelsWithId("correctId", "wrongId"), "correctId"), equalTo(true)); }
@Test public void containsLabelForIdShouldReturnFalseIfLabelForThatIdDoesNotExists() { assertThat(containsLabelForId(labelsWithId("anotherId", "wrongId"), "correctId"), equalTo(false)); }