@Test public void hasAssociatedControls() {

    //"button", "fieldset", "input", "keygen", "object", "output", "select", "textarea"
    String html = "<form id=1><button id=1><fieldset id=2 /><input id=3><keygen id=4><object id=5><output id=6>" +
            "<select id=7><option></select><textarea id=8><p id=9>";
    Document doc = Jsoup.parse(html);
    FormElement form = (FormElement) doc.select("form").first();
    assertEquals(8, form.elements().size());
}