htmlSrc.append("</FORM></BODY></HTML>");
StringReader reader = new StringReader(htmlSrc.toString());
htmlEditorKit.read(reader, document, 0);
AttributeSet attrs = document.getElement("1").getAttributes();
DefaultButtonModel sourceModel1;
sourceModel1 = (DefaultButtonModel) attrs.getAttribute(StyleConstants
.ModelAttribute);
assertEquals(0, sourceModel1.getGroup().getButtonCount());
attrs = document.getElement("2").getAttributes();
DefaultButtonModel sourceModel2;
sourceModel2 = (DefaultButtonModel) attrs.getAttribute(StyleConstants
.ModelAttribute);
assertEquals(0, sourceModel2.getGroup().getButtonCount());
createFormViewWithParent("1");
assertEquals(0, sourceModel1.getGroup().getButtonCount());
}