@Test public void actionWithNoValue() {

    String html = "<form><input name='q'></form>";
    Document doc = Jsoup.parse(html, "http://example.com/");
    FormElement form = ((FormElement) doc.select("form").first());
    Connection con = form.submit();
    assertEquals("http://example.com/", con.request().url().toExternalForm());
}