addPageRequest("http://test.com",
newHtml("Test Page", newForm("form").id("form").addRadioButton("button", "value1").
addCheckedRadioButton("button", "value2").addRadioButton("button", "value3")));
addPageRequest("http://test.com/form?button=value3", newHtml("OK", ""));
AbstractDocument page = agent().get("http://test.com");
Form form = page.forms().find("#form");
assertFalse(form.findRadioButton(byIdOrName("button"), "value1").isChecked());
assertTrue(form.findRadioButton(byIdOrName("button"), "value2").isChecked());
assertFalse(form.findRadioButton(byIdOrName("button"), "value3").isChecked());