public void testEmptyFormWithPostMethod() {
addPageRequest("http://test.com",
newHtml("Test Page", newForm("form", "post").id("form")));
addPageRequest("POST", "http://test.com/form", newHtml("OK", ""));
AbstractDocument page = agent().get("http://test.com");
Form form = page.forms().find("#form");
AbstractDocument response = form.submit();
assertEquals("OK", response.getTitle());
assertTrue(form.isDoPost());
}