" RootPanel rootPanel = RootPanel.get();",
" rootPanel.add(new Button());",
" }",
"}");
frame.refresh();
UIObjectUtils objectUtils = frame.getUIObjectUtils();
DOMUtils domUtils = frame.getDOMUtils();
//
Object rootPanel = objectUtils.getRootPanel();
Object rootPanelElement = objectUtils.getElement(rootPanel);
// when RootPanel is live, we have much of Element's
domUtils.appendChild(rootPanelElement, domUtils.createButton());
{
int count = domUtils.getChildCount(rootPanelElement);
assertThat(count).isGreaterThan(1);