// hudson-behavior uniquifies radiobutton names so the browser properly handles each group,
// then converts back to original names when submitting form.
public void testRadioBlock() throws Exception {
HtmlPage p = createWebClient().goTo("self/testRadioBlock");
HtmlForm f = p.getFormByName("config");
f.getButtonByCaption("Add").click();
f.getInputByValue("").setValueAttribute("txt one");
f.getInputByValue("").setValueAttribute("avalue do not send");
f.getElementsByAttribute("INPUT", "type", "radio").get(1).click();
f.getInputByValue("").setValueAttribute("bvalue");
f.getButtonByCaption("Add").click();
f.getInputByValue("").setValueAttribute("txt two");
f.getElementsByAttribute("INPUT", "type", "radio").get(2).click();
f.getInputByValue("").setValueAttribute("avalue two");
submit(f);
assertEquals("[{\"radio\":{\"b\":\"bvalue\",\"value\":\"two\"},\"txt\":\"txt one\"},"
+ "{\"radio\":{\"a\":\"avalue two\",\"value\":\"one\"},\"txt\":\"txt two\"}]",
formData.get("foos").toString());
}