@Test public void forms() {

    Document doc = Jsoup.parse("<form id=1><input name=q></form><div /><form id=2><input name=f></form>");
    Elements els = doc.select("*");
    assertEquals(9, els.size());
    List<FormElement> forms = els.forms();
    assertEquals(2, forms.size());
    assertTrue(forms.get(0) != null);
    assertTrue(forms.get(1) != null);
    assertEquals("1", forms.get(0).id());
    assertEquals("2", forms.get(1).id());
}