" Button button_2 = new Button();",
" add(button_2, new HTML('Second widget'), 1.0);",
" }",
" }",
"}");
panel.refresh();
WidgetInfo button_1 = getJavaInfoByName("button_1");
WidgetInfo button_2 = getJavaInfoByName("button_2");
//
List<WidgetHandle> handles = panel.getWidgetHandles();
assertThat(handles).hasSize(2);