### Question:
HtmlBody { public boolean containsId(String id) { return !this.doc.select("#" + id).isEmpty(); } HtmlBody(String html); String extractInputFieldValueByName(String fieldName); boolean containsId(String id); List<String> extractInputCheckboxNamesByFormId(String formId);  }### Answer:
@Test public void testContainsId_shouldReturnAccordingly() { assertThat(new HtmlBody("<html><input id=\"frmConsent\"/></html>").containsId("frmConsent")).isTrue(); assertThat(new HtmlBody("<html></html>").containsId("frmConsent")).isFalse(); }